logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: AW: Performance and Logger.getLogger()
Date Wed, 02 Apr 2003 14:54:31 GMT

Although we've resolved the original question, I have a related one: has anyone tried using
a FastHashMap or another of the commons-collections utilities to improve the performance of
the logger lookup?

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Ceki Gülcü [mailto:ceki@qos.ch]
>Sent: Wednesday, April 02, 2003 9:51 AM
>To: Log4J Users List
>Subject: Re: AW: Performance and Logger.getLogger()
>At 04:41 PM 4/2/2003 +0200, you wrote:
>>The FAQ:
>>You are on the right track.
>>The question is:
>>         Logger logger = Logger.getLogger("foo.bar");
>>         logger.warn("");
>>         logger.error("");
>yes. good.
>>         Logger.getLogger("foo.bar").warn("");
>>         Logger.getLogger("foo.bar").warn("");
>>         Logger.getLogger("foo.bar").warn("");
>yes, bad.
>Logger.getLogger("something") will essentially perform a look up on a
>hashtable. I don't think you could improve on this by keeping your own
>hashtable. There are ways where you could potentially improve on the lookup
>performance but this would require a really disproportionate amount of
>effort on your part.
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

View raw message