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:[EMAIL PROTECTED]] |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: |<mailto:log4j-user-|[EMAIL PROTECTED]> |For |additional commands, e-mail: |<mailto:[EMAIL PROTECTED]> | -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>