Add the following in ur log4j property file: log4j.logger.org.apache = OFF
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 23, 2006 1:15 PM To: user@struts.apache.org Subject: Log4j -how not to log everything? Hi, I have been using log4j for logging purpose in a struts application. The genreted log file contains all log messages apart from given in the application. It is logging all the messages genereted from struts classes also. can any one suggest the properties of log4j properties file so that ONLY application related messages are logged? here is a part of the log4j.properties file: log4j.appender.debuggingAppender=org.apache.log4j.RollingFileAppender log4j.appender.debuggingAppender.File=c:\\R4.1Logs\\DebugGUI.log log4j.appender.debuggingAppender.MaxFileSize=3MB log4j.appender.debuggingAppender.MaxBackupIndex=50 log4j.appender.debuggingAppender.layout=org.apache.log4j.PatternLayout log4j.appender.debuggingAppender.layout.ConversionPattern=[%d{yyyy-MM-dd HH:mm:ss}] %p %t%n%l - %m%n here is a part of the genereted log file: org.apache.struts.util.PropertyMessageResources.loadLocale(PropertyMessa geResources.java:327) - Saving message key '.err.bundleForm.searchbundle [2006-06-23 12:49:25] DEBUG http-8080-Processor25 org.apache.struts.util.PropertyMessageResources.loadLocale(PropertyMessa geResources.java:327) - Saving message key '.offerconfig.offerCriteria.VersionCode [2006-06-23 12:49:25] DEBUG http-8080-Processor25 org.apache.struts.util.PropertyMessageResources.loadLocale(PropertyMessa geResources.java:327) - Saving message key '.err.categoryForm.searchSMSCategory [2006-06-23 12:49:25] DEBUG http-8080-Processor25 org.apache.struts.util.PropertyMessageResources.loadLocale(PropertyMessa geResources.java:327) - Saving message key '.offerconfig.offerMetaData.offerAnalysisCategory /// along with application messages also. I want to generate only appliation logs, not the logs from "org.apache......." etc.. Regards, Nagesh 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 **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]