You attach your logging level to your logger.
You can specify your log4j configuration properties in file by using
PropertyConfigurator.configure(String configFilename). You can also configure
log4j by using some of the other methods of PropertyConfigurator. For example,
you can create a java
PROTECTED]
Sent: Tuesday, May 06, 2008 4:28 PM
To: Log4J Users List
Subject: Re: Setting logging levels
You attach your logging level to your logger.
You can specify your log4j configuration properties in file by using
PropertyConfigurator.configure(String configFilename). You can also configure
If the string which you supply to logger.info() must first be constructed
(normally a expensive operation which you dont want to do if info is not
enabled) you can avoid this by:
if ( logger.isInfoEnabled() )
{
logger.info( prepareString( args ) );
}
Without this surrounding if the string w