Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 76013 invoked from network); 12 Oct 2006 17:12:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Oct 2006 17:12:49 -0000 Received: (qmail 62349 invoked by uid 500); 12 Oct 2006 17:12:37 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 62324 invoked by uid 500); 12 Oct 2006 17:12:37 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 62296 invoked by uid 99); 12 Oct 2006 17:12:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Oct 2006 10:12:36 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.201.96.57] (HELO mail.korax.net) (216.201.96.57) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Oct 2006 10:12:35 -0700 Received: from [127.0.0.1] (94.34.234.216.rev.connection.ca [216.234.34.94]) by mail.korax.net (Postfix) with ESMTP id 0A73A1703E6 for ; Thu, 12 Oct 2006 13:12:14 -0400 (EDT) Message-ID: <452E776F.1000305@sysconet.ca> Date: Thu, 12 Oct 2006 13:12:15 -0400 From: Rizwan Merchant User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: jvm thread dump References: <452BAC3F.3020400@sysconet.ca> <452BBFF9.2010804@christopherschultz.net> <452BC890.9010309@sysconet.ca> <452BCE8E.3030606@christopherschultz.net> <452BD2FF.8060208@sysconet.ca> <452BF15F.8030404@christopherschultz.net> <452C7B90.6030508@sysconet.ca> <452CED63.2000407@christopherschultz.net> <452D6ACE.2050008@sysconet.ca> <452D79D0.2060500@christopherschultz.net> <452E5AE8.1000700@sysconet.ca> <452E5FCB.700@christopherschultz.net> In-Reply-To: <452E5FCB.700@christopherschultz.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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