Hi,

I am using same strategy as given below to log the debug messages

But my application debug message coming twice.
What should be done to suppress it.


log4j.rootLogger=error, debuggingAppender

log4j.logger.my.package=debug, debuggingAppender
log4j.additivity.my.package=false

Thanks,
Ashish
Antonio Petrelli wrote:

Bharat Kumar Meda ha scritto:

Add the following in ur log4j property file:

log4j.logger.org.apache = OFF



Mmm this way you switch off all the errors of "org.apache" packages, including fatal ones! I think it is better to enable "error" as the level of the root logger, then enable, for example, "debug" as the level of your packages.

log4j.rootLogger=error, debuggingAppender

log4j.logger.my.package=debug, debuggingAppender
log4j.additivity.my.package=false

HTH
Antonio



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
______________________________________________________________________
Ashish Jain Member Technical Staff (*SEG)** Office :* +91 80 4108 2200 * Mobile: *+91 9845924576 Disclaimer: The Opinions expressed in this mail are mine, and do not necessarily represent those of Oracle Corporation.

Reply via email to