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 Adam Hardy <ju...@cyberspaceroad.com> on 2002/07/10 21:40:33 UTC

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

Ah, that sounds like the problem. No I didn't configure additivity at 
all. I'm using an XML file and I don't remember seeing an additivity 
attribute in the DTD. I'm at home now but I'll check it out tomorrow in 
the office.


Thanks alot
Adam

Ebersole, Steven wrote:

>Sorry, brain-fart, should be:
>
>log4j.rootLogger=ERROR, A1
>
>log4j.logger.myDefinedLogger=DEBUG, A2
>log4j.logger.additivity.myDefinedLogger=false
>
>....
>
>
>
>********************************************
>Steve Ebersole
>IT Integration Engineer
>Vignette Corporation 
>512.741.4195
>
>Visit http://www.vignette.com
>
>********************************************
>
>
>|-----Original Message-----
>|From: Ebersole, Steven 
>|Sent: Wednesday, July 10, 2002 2:24 PM
>|To: 'Log4J Users List'
>|Subject: 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>
>
>
>  
>



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