Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3AFECDF74 for ; Mon, 28 Jan 2013 11:44:21 +0000 (UTC) Received: (qmail 68406 invoked by uid 500); 28 Jan 2013 11:44:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 67962 invoked by uid 500); 28 Jan 2013 11:44:17 -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 67928 invoked by uid 99); 28 Jan 2013 11:44:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 11:44:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tiago-a-sousa@ext.ptinovacao.pt designates 194.65.138.99 as permitted sender) Received: from [194.65.138.99] (HELO owa.ptinovacao.pt) (194.65.138.99) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 11:44:10 +0000 Received: from [10.112.57.120] (10.112.57.120) by inoavrcas01.ptin.corpPT.com (10.112.15.99) with Microsoft SMTP Server id 8.3.279.1; Mon, 28 Jan 2013 11:43:48 +0000 Message-ID: <51066481.1070205@ext.ptinovacao.pt> Date: Mon, 28 Jan 2013 11:44:01 +0000 From: Tiago Sousa User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Subject: Re: Tomcat6+webapps+log4j References: <51015AB5.5030600@ext.ptinovacao.pt> <51025456.1000702@ext.ptinovacao.pt> <5102DF7D.1000402@christopherschultz.net> In-Reply-To: <5102DF7D.1000402@christopherschultz.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Em 25/01/2013 19:39, Christopher Schultz escreveu: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Tiago, > > On 1/25/13 4:45 AM, Tiago Sousa wrote: >> Em 25/01/2013 08:59, Konstantin Kolinko escreveu: >>> 2013/1/24 Tiago Sousa : >>>> Hello to all. >>>> >>>> I have tomcat 6 >>> Which version? >> I'm using tomcat 6.0.16. >>> Did you install it from a zip file downloaded from >>> tomcat.apache.org? >> Yes, i installed using a zip file downloaded from >> tomcat.apache.org. >> >>> using JULI for logging (logging.properties in conf dir) plus >>> several webapps using its own log4j.properties. >>> >>> I need to centralized all the logs so i thought to put a >>> global/shared log4j.properties in $CATALINA_BASE\lib so that >>> tomcat and each webapp can be controlled through this file. OK, >>> but make sure that all jars are in their proper places. >>> Sometimes people read the doc incorrectly. >>> >>> http://tomcat.apache.org/tomcat-6.0-doc/logging.html >> Ok, i think i've done it, namely: >> >> * Put|log4j.jar|and|tomcat-juli-adapters.jar|from "extras" >> into|$CATALINA_HOME/lib|. * >> Replace|$CATALINA_HOME/bin/tomcat-juli.jar|with|tomcat-juli.jar|from >> >> > "extras". >> >> The problem i'm facing is that no logs are produced. At this time >> i'm trying to configure just TOMCAT, no webapps, to log through >> log4j but still no logs are produced. I've folowed the tutorial in >> Apache logging webpage with the standard log4j.properties. No logs >> in $CATALINA_BASE\logs. >>> Which tutorial did you follow? >> The one you mentioned: >> http://tomcat.apache.org/tomcat-6.0-doc/logging.html >>> Did you configure them to be written to "${catalina.base}/logs" >>> ? Maybe it tries to write them elsewhere? >> It is configured in its standard version ( >> http://tomcat.apache.org/tomcat-6.0-doc/logging.html), which i am >> using. >>> Is the file readable? >> There is no file, tomcat does not create one and that is my >> problem. > I think Konstantin meant "is the config file readable" or perhaps "is > the logs/ directory writable". Of course, all permissions must be > relative to the effective uid running Tomcat. > > Check catalina.out. If you don't have a log4j.properties file (or > similar) available, I believe you'll get a message on stdout saying > "You haven't configured log4j properly" and you won't get any further > log messages anywhere. > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEAREIAAYFAlEC330ACgkQ9CaO5/Lv0PBrVQCfb9A0KMGRe0aoqRSeYrHT1WNx > 0lwAn3ed8h09a7fv7Vg4jCgerDUrPFD1 > =G3j0 > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > Hi... Just a final tip, i´m using log4j-api-2.0-beta3 as my log4j.jar (without renaming it). Any problem with that? Thanks. Tiago --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org