Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 65940 invoked from network); 7 Jan 2009 21:57:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jan 2009 21:57:18 -0000 Received: (qmail 63814 invoked by uid 500); 7 Jan 2009 21:57:05 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 63789 invoked by uid 500); 7 Jan 2009 21:57:05 -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 63778 invoked by uid 99); 7 Jan 2009 21:57:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2009 13:57:05 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2009 21:56:57 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LKgOC-0001U4-Cy for users@tomcat.apache.org; Wed, 07 Jan 2009 13:56:36 -0800 Message-ID: <21341246.post@talk.nabble.com> Date: Wed, 7 Jan 2009 13:56:36 -0800 (PST) From: "juan.velez" To: users@tomcat.apache.org Subject: Re: Tomcat 6; getting logging to work In-Reply-To: <49652401.9010906@hanik.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: juan.velez@areva-td.com References: <47B4CBAE.2030109@jxProject.com> <47B4D00C.5020304@apache.org> <21340734.post@talk.nabble.com> <49652401.9010906@hanik.com> X-Virus-Checked: Checked by ClamAV on apache.org Yes I have handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, \ 3manager.org.apache.juli.FileHandler, 4admin.org.apache.juli.FileHandler, \ 5host-manager.org.apache.juli.FileHandler, 6mmi.org.apache.juli.FileHandler, \ java.util.logging.ConsoleHandler Filip Hanik - Dev Lists wrote: > > have you defined > > 6mmi.org.apache.juli.FileHandler > > I don't see that in your addition > > Filip > > juan.velez wrote: >> I followed the directions in that link >> (http://tomcat.apache.org/tomcat-6.0-doc/logging.html) and my logging >> messages still do not show up. I mean, I see the INFO messages generated >> by >> my web-app but if I change the level to FINE (or FINEST) I do not see it. >> I >> am using Tomcat 6.0.18 and Java Util Logging >> >> I have modified the %CATALINA_HOME%\conf\logging.properties (Using >> Jconsole >> I can see that this is the file being used as the logging properties) to >> add >> a new file handler 6mmi.org.apache.juli.FileHandler, changed the level >> for >> the console handler to FINEST >> >> java.util.logging.ConsoleHandler.level = FINEST >> >> And added >> >> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mmi].level >> = >> FINEST >> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mmi].handlers >> = 6mmi.org.apache.juli.FileHandler >> >> I do see the mmi.yyyy-mm-dd.log file created but the only contents are >> INFO >> messages generated by catalina. And messages below INFO are not seen on >> either the console or any of the log files. >> >> Any idea what I am doing wrong? >> >> Thanks, >> >> Juan >> >> >> >> >> >> Mark Thomas-18 wrote: >> >>> Peter Hawkins wrote: >>> >>>> Basically, I would like to enable logging for my JSP app. How do I do >>>> it? >>>> >>> Take a look at http://tomcat.apache.org/tomcat-6.0-doc/logging.html >>> You want the java.util.logging section. Replace the examples web app >>> with >>> your own and then just use java.util.logging as per normal. >>> >>> >>>> Is it the same procedure for tomcat 5.5 and 6.0? >>>> >>> No. >>> >>> >>>> Do I need to rebuild tomcat with log4j to get ANY logging? >>>> >>> No. Only if you want to use log4j for all Tomcat logging. >>> >>> >>>> Where is the catalina.out file? I can't find it anyplace, but I see it >>>> being discussed. >>>> >>> It is now catalina.yyyy-mm-dd and is in the logs directory. >>> >>> >>>> How do I direct the stdout logging to a file with Tomcat 6. >>>> >>> Set the swallowOutput for the context. See >>> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html >>> >>> HTH, >>> >>> Mark >>> >>> >>> --------------------------------------------------------------------- >>> 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 >>> >>> >>> >>> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Tomcat-6--getting-logging-to-work-tp15491669p21341246.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org