You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Ebersole, Steven" <st...@vignette.com> on 2002/07/10 21:24:09 UTC

RE: Can't control logging via root - get all msgs despite setting priority

Did you set the additivity flag to false on the second logger?

You should have something like:


log4j.rootLogger=ERROR, A1

log4j.myDefinedLogger=DEBUG, A2
log4j.additivity.myDefinedLogger=false

....



********************************************
Steve Ebersole
IT Integration Engineer
Vignette Corporation 
512.741.4195

Visit http://www.vignette.com

********************************************


|-----Original Message-----
|From: Adam Hardy [mailto:junk@cyberspaceroad.com]
|Sent: Wednesday, July 10, 2002 2:19 PM
|To: Log4J Users List
|Subject: Re: Can't control logging via root - get all msgs despite
|setting priority
|
|
|Hi All,
|I've configured the root logger to put all errors & fatals in 
|a log file.
|
|My problem comes when I configure a second logger. My second logger 
|passes all debug & above to the console. However as soon as I 
|configure 
|this second logger, the root logger also sends all debug & 
|above to the 
|file.
|
|I can't figure out how to stop this. Can anyone help?
|
|
|Thanks
|Adam
|
|
|--
|To unsubscribe, e-mail:   
|<ma...@jakarta.apache.org>
|For 
|additional commands, e-mail: 
|<ma...@jakarta.apache.org>
|

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>