V Jayakumar | 16 Jul 09:28

Configuring Tomcat application's logging


Hello

OS : Linux  + Tomcat 5.5

Logs from my application deployed in Tomcat being written to catalina.out with logging level as DEBUG

I want to change the logging level for my application to ERROR

Created a directory as:

/home/tomcat/webapps/appName/WEB-INF/classes

Had created a log4j.properties 

/home/tomcat/webapps/appName/WEB-INF/classes/log4j.properties 

log4j.rootLogger=ERROR,
Rlog4j.appender.R=org.apache.log4j.RollingFileAppenderlog4j.appender.R.File=/tmp/abcd.loglog4j.appender.R.MaxFileSize=10MBlog4j.appender.R.MaxBackupIndex=10log4j.appender.R.layout=org.apache.log4j.PatternLayoutlog4j.appender.R.layout.ConversionPattern=%p
%t %c - %m%n
Restarted tomcat.

Still, my new changes are not considered and logs from my application is being sent to catalina.out & even
DEBUG messages are being logged.

Could someone let me know, how to configure the logging properties for my application in tomcat, please ?

Thanks

_________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008

Gmane