logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: multiple lines of output for the same logging event
Date Sun, 30 Aug 2009 03:54:02 GMT

On Aug 29, 2009, at 1:08 PM, Vasile.Jureschi@sophia.inria.fr wrote:

> On Saturday 29 August 2009 21:01:37 deepak singh wrote:
>> The reason could be you are initializing the logger multiple times.
>> Can you send the code where you are initializing the logger and  
>> make sure
>> that part of code is called just once during entire execution.
>> Thanks
>> Deepak

You are calling BasicConfigurator::configure multiple times (once in  
each constructor).  log4j and log4cxx configurations are cumulative,  
so each call attaches another appender to the root logger.

Mime
View raw message