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

Reply via email to