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 BA8514C93 for ; Mon, 6 Jun 2011 17:10:01 +0000 (UTC) Received: (qmail 34219 invoked by uid 500); 6 Jun 2011 17:10:01 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 34137 invoked by uid 500); 6 Jun 2011 17:10:01 -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 34061 invoked by uid 99); 6 Jun 2011 17:10:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 17:10:01 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [80.12.242.2] (HELO smtp6.freeserve.com) (80.12.242.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 17:09:52 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3j27.me.freeserve.com (SMTP Server) with ESMTP id C0A6D30000BD for ; Mon, 6 Jun 2011 19:09:31 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3j27.me.freeserve.com (SMTP Server) with ESMTP id B41F83000042 for ; Mon, 6 Jun 2011 19:09:31 +0200 (CEST) Received: from mail.homeinbox.net (unknown [2.29.25.131]) by mwinf3j27.me.freeserve.com (SMTP Server) with ESMTP id A314F30000BD for ; Mon, 6 Jun 2011 19:09:31 +0200 (CEST) X-ME-UUID: 20110606170931668.A314F30000BD@mwinf3j27.me.freeserve.com Received: from localhost (localhost [127.0.0.1]) by mail.homeinbox.net (Postfix) with ESMTP id 5B202EAAB3F for ; Mon, 6 Jun 2011 18:09:31 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at homeinbox.net Received: from mail.homeinbox.net ([127.0.0.1]) by localhost (mail.homeinbox.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fp8qvtIEmkVm for ; Mon, 6 Jun 2011 18:09:18 +0100 (BST) Received: from [192.168.23.9] (study03.dev.local [192.168.23.9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.homeinbox.net (Postfix) with ESMTPSA id 09A3AEAA4F9 for ; Mon, 6 Jun 2011 18:09:18 +0100 (BST) Message-ID: <4DED09B6.70500@apache.org> Date: Mon, 06 Jun 2011 18:09:10 +0100 From: Mark Thomas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Error in Tomcat 6.0 log4j documentation References: <4DECE355.3020909@zmaw.de> In-Reply-To: <4DECE355.3020909@zmaw.de> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 06/06/2011 15:25, Remon Sadikni wrote: > Dear Tomcat-Developers and Users, > > I think there is an error in the Tomcat 6.0 logging documentation with > log4j: > http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j > > For every appender there is a layout missing and in front of > conversionPattern there is missing "layout.". So for example for the > appender CATALINA the right syntax would be: > > log4j.appender.CATALINA=org.apache.log4j.DailyRollingFileAppender > log4j.appender.CATALINA.file=${catalina.base}/logs/catalina. > log4j.appender.CATALINA.encoding=UTF-8 > # Roll-over the log once per day > log4j.appender.CATALINA.DatePattern='.'yyyy-MM-dd'.log' > log4j.appender.CATALINA.layout.conversionPattern = %d [%t] %-5p %c- %m%n > log4j.appender.CATALINA.layout=org.apache.log4j.PatternLayout > log4j.appender.CATALINA.append=true > > The same errors appear in the Tomcat 7.0 documentation. Thanks for the report. I could see the missing "layout." but no missing layouts for the appenders. The fixes will be in 7.0.16 and 6.0.33. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org