tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rizwan Merchant <rizwan.merch...@sysconet.ca>
Subject Re: jvm thread dump
Date Thu, 12 Oct 2006 17:12:15 GMT

Chris,
I cant thank you enough for all your help. If only there was a rating 
system on this forum! ;)

thing is, I am not using ant System.out commands in my app. I have log4j 
set up in the app which is logging to a different log file that rolls 
nightly.
But I am seeing the same log messages (info level from the application) 
being dumped into catalina.out, so these are definitely not System.out 
logs.
any idea how to turn off logging these log4j messages to catalina.out?
I do have a log4j.properties file in CATALINA_HOME/common/classes 
(attached for your reference). Other than that, I do not know how the 
log messages are ending up in catalina.out

thanks,
-Riz.


#
# Configures Log4j as the Tomcat system logger
#

#
# Configure the logger to output info level messages into a rolling log file.
#
#log4j.rootLogger=INFO, R

#
# To continue using the "catalina.out" file (which grows forever),
# comment out the above line and uncomment the next.
#
log4j.rootLogger=ERROR, A1

#
# Configuration for standard output ("catalina.out").
#
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
#
# Print the date in ISO 8601 format
#
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

#
# Configuration for a rolling log file ("tomcat.log").
#
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.DatePattern='.'yyyy-MM-dd
#
# Edit the next line to point to your logs directory.
# The last part of the name is the log file name.
#
log4j.appender.R.File=/usr/local/tomcat/logs/tomcat.log
log4j.appender.R.layout=org.apache.log4j.PatternLayout
#
# Print the date in ISO 8601 format
#
log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

#
# Application logging options
#
#log4j.logger.org.apache=DEBUG
#log4j.logger.org.apache=INFO
#log4j.logger.org.apache.struts=DEBUG
#log4j.logger.org.apache.struts=INFO


> You can't roll catalina.out. I read that thread, and the response you
> got that said "don't log to stdout" was right: just don't do it. Since
> you are using log4j already, have log4j log to a different log file that
> /does/ roll. You shoudln't have any System.out or System.err usage in
> your webapp.
>
>   
>> http://mail-archives.apache.org/mod_mbox/tomcat-users/200610.mbox/%3c452DE47D.30802@sysconet.ca%3e
>>     
>
> I'll answer this one separately. Look for a followup post.
>
> -chris
>
>
>   

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message