Jacob Kjome | 19 Jul 21:00
Favicon

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.
>  
> 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