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

_________________________________________________________________
(Continue reading)

Jacob Kjome | 19 Jul 21:00

Re: Configuring Tomcat application's logging

Are you trying to use Log4j for Tomcat's logging, your own application's logging,
or both?  Where did you put log4.jar?

Jake

V Jayakumar wrote:
> 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.
>  
(Continue reading)


Gmane