Hi Mark; AFAIK, if you do not specify logger specific channel, it uses the root logger channel. Because every log event is passed to the logger hierarchy and finally reaches the root logger.
I think problem is that, if you define the logger channel then it simply prints the message to the logger channel and going up to the hierarchy, root logger also prints to stdout into eclipse console. So I removed the logger channel :) Thanks; ________________________________ From: Mark Struberg <[email protected]> To: [email protected] Sent: Saturday, March 7, 2009 3:05:12 PM Subject: AW: svn commit: r750630 - /incubator/openwebbeans/trunk/webbeans-tck/src/test/resources/log4j.properties Hiho folks - I'm (almost) back from skiing :) Gurkan, I'm not not a log4j profi (and always used XML for configuring it until now), so I have a question about this change: MyFaces complained about a missing or wrong log4j configuration if I only use > log4j.logger.org.apache.webbeans=debug but works if I add the stdout logger setting. So I thought log4j needs both settings a) the log level and b) the logger channel which is why I added the 'stdout'. Any one can shed a light on this for me? Where did you experience the duplicated log output, in eclipse or mvn console? txs, strub --- [email protected] <[email protected]> schrieb am Do, 5.3.2009: > Von: [email protected] <[email protected]> > Betreff: svn commit: r750630 - > /incubator/openwebbeans/trunk/webbeans-tck/src/test/resources/log4j.properties > An: [email protected] > Datum: Donnerstag, 5. März 2009, 23:10 > Author: gerdogdu > Date: Thu Mar 5 22:10:31 2009 > New Revision: 750630 > > URL: http://svn.apache.org/viewvc?rev=750630&view=rev > Log: > Remove debug, otherwise prints twice log information. > > Modified: > > incubator/openwebbeans/trunk/webbeans-tck/src/test/resources/log4j.properties > > Modified: > incubator/openwebbeans/trunk/webbeans-tck/src/test/resources/log4j.properties > URL: > http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-tck/src/test/resources/log4j.properties?rev=750630&r1=750629&r2=750630&view=diff > ============================================================================== > --- > incubator/openwebbeans/trunk/webbeans-tck/src/test/resources/log4j.properties > (original) > +++ > incubator/openwebbeans/trunk/webbeans-tck/src/test/resources/log4j.properties > Thu Mar 5 22:10:31 2009 > @@ -35,4 +35,4 @@ > > > ### Main project logger to info > -log4j.logger.org.apache.webbeans=debug,stdout > +log4j.logger.org.apache.webbeans=debug > > >
