Re: Anything is logged twice
Posted By:
Adrien_Meaudre
Posted On:
Tuesday, June 1, 2004 05:16 AM
Hi,
Everything is logged twice because each event logged through your "com.ito.lms" logger is also logged by the root logger.
To avoid this, simply add another configuration parameter for the "com.ito.lms" logger (for example just below the line where the logger is defined) :
log4j.additivity.com.ito.lms=false
This tells that any event logged by this logger should not be propagated to the ancestor logger.
Hope this can help.
Adrien Meaudre