commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <>
Subject Re: commons logging class level logging
Date Tue, 29 Mar 2005 16:38:01 GMT

Use a "private final static Log" member in your classes. That way the 
logging object is created at startup and thus you no longer have to 
spend time for it.

> What's the quickest and easiest way of my code knowing what class 
> called a method?
If you use log4j you could configure the pattern of the appender to 
provide this information. I dont know now whats the pattern token is, 
but you should find it on the log4j homepage.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message