Hi, Thanks All. I am closing the issue with the following solution: log4j.rootLogger=error, debuggingAppender
log4j.logger.my.package=debug, debuggingAppender log4j.additivity.my.package=false Regards, Nagesh -----Original Message----- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Friday, June 23, 2006 1:45 PM To: Struts Users Mailing List Subject: [OT] Re: Log4j -how not to log everything? 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] The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]