Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 85369 invoked from network); 6 Feb 2007 22:17:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2007 22:17:00 -0000 Received: (qmail 92474 invoked by uid 500); 6 Feb 2007 22:16:55 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 91531 invoked by uid 500); 6 Feb 2007 22:16:53 -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 91520 invoked by uid 99); 6 Feb 2007 22:16:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Feb 2007 14:16:53 -0800 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [209.191.69.178] (HELO web33815.mail.mud.yahoo.com) (209.191.69.178) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 06 Feb 2007 14:16:43 -0800 Received: (qmail 76829 invoked by uid 60001); 6 Feb 2007 22:16:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=NSDbV1exLOp2nRQPWPx2RqVXBwXkt4OiWEXoZdTjZ/85y670v4l/GtwIqmdjg19YtJxhSi44bCT8eK5TRM1SnoKXrVtj6ahnadQTCv6MsI+ICXoFsOu3yRlzbD7ubdaN+CL+o9RFt2GcqbrcDGx4vLT9XsRBVpJGHnNey7HWALI=; X-YMail-OSG: vdOA6cAVM1myLcuMIFTjVEH_GNtOcmpW37wTQxRNughnEE5OTEWI2KKtJr1umUEol_CJUejzLi1zpPNjjYGwZbeSHVPGOSmd3CWReZ235oY1v.dKniP31f_dKEkPtt6.0NDx3wE88XrApkyzLqfV1SV97fVjX_MgyiyqYoII_nvtgnnnxkuK6T3xhcwS Received: from [205.233.198.80] by web33815.mail.mud.yahoo.com via HTTP; Tue, 06 Feb 2007 17:16:22 EST Date: Tue, 6 Feb 2007 17:16:22 -0500 (EST) From: Hugues Ferland Reply-To: huguesf@yahoo.com Subject: Re: webapp, ServletContextListener and log files To: Tomcat Users List In-Reply-To: <20070205202738.38231.qmail@web33803.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-265649094-1170800182=:76558" Content-Transfer-Encoding: 8bit Message-ID: <545975.76558.qm@web33815.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-265649094-1170800182=:76558 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I apologize for this previous mail, I realized this was just plain wrong. It was stdout and stderr that was written to catalina_XXXX.log (though I don't know where that log file is configured - there is also a catalina.out which remains empty). This lead me ask: What really do? As I understood it, it was supposed to indicate to Tomcat whether it should smallow stdout and stderr and write them to its log file. But I tried both true and false with no apparent difference. Thanks, Hugues Hugues Ferland wrote: Hi, I use Tomcat 5.5 with Java 1.6.0-b105 on a Debian Linux. I have a context defined and want all of its logging to be in its own logfile. The first thing I tried is to modify the file logging.properties, in the conf directory of my Tomcat installation, adding a handler for my new context. This looked good until I added a ServletContextListener. Now what is logged during the execution of the method contextInitialized, is written to catalina_XXXX.log (the logfile defined in the Tomcat startup script). I'd like that to be logged in the same logfile as the rest of the context. I would really appreciate any help. Thanks, Hugues --------------------------------- Now you can have a huge leap forward in email: get the new Yahoo! Mail. --------------------------------- Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail --0-265649094-1170800182=:76558--