Return-Path: X-Original-To: apmail-logging-log4j-user-archive@www.apache.org Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C12719D09 for ; Fri, 9 Mar 2012 06:24:33 +0000 (UTC) Received: (qmail 42535 invoked by uid 500); 9 Mar 2012 06:24:33 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 42240 invoked by uid 500); 9 Mar 2012 06:24:32 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 42213 invoked by uid 99); 9 Mar 2012 06:24:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 06:24:31 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of meiry242@gmail.com designates 209.85.213.175 as permitted sender) Received: from [209.85.213.175] (HELO mail-yx0-f175.google.com) (209.85.213.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 06:24:24 +0000 Received: by yenm3 with SMTP id m3so827887yen.34 for ; Thu, 08 Mar 2012 22:24:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=YTEqA76jzyZzoLIxDEvXZCTClj2xtRS1+1UaMCkLWA0=; b=VrWL+nAFsFInzc+aOOgLE0aFBnm5THeghqWFN5TNqw/lzxsgdepFI74NS/CMm8ovsE 82zzuhVIM8uMq39n5KY2NiK9nbDinq4Lgcb0d/jCem/2vjIe29AwijxEbpbKiIHWPsHh uMTNv3M/vCL6ac/q14Y9mc6kKq0QsZiIjHIGQ16YtZgnFBgl3ghS+zD0EVz/FYHhwS85 ZqjkiKrNquswdX5PkI2xOvbbKd632EUopDzITKOjvHPD2MTmsvXTz4/6nzRF/s4ZOZbv dmEh6+espocIQ1kb2jo+vavnH31jXledOHimNiSoC8gjwYbQzRntDpqUOHxYRLfhWQs2 fC+Q== MIME-Version: 1.0 Received: by 10.236.192.137 with SMTP id i9mr930433yhn.115.1331274244022; Thu, 08 Mar 2012 22:24:04 -0800 (PST) Received: by 10.146.35.6 with HTTP; Thu, 8 Mar 2012 22:24:03 -0800 (PST) In-Reply-To: References: Date: Fri, 9 Mar 2012 08:24:03 +0200 Message-ID: Subject: Re: Tomcat log4j doesn't roll files as supposed to From: Meir Yanovich To: Log4J Users List Content-Type: multipart/alternative; boundary=20cf303f63b869e3c404bac970d0 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303f63b869e3c404bac970d0 Content-Type: text/plain; charset=ISO-8859-1 Hi it supposd to be C:\Tomcat not C:\LB\Tomcat my mistake how can i check what is going wrong ? On Fri, Mar 9, 2012 at 7:08 AM, Brett Randall wrote: > What's going on with C:\LB\Tomcat versus C:\Tomcat ? Do you have two > Tomcat installations? > > Brett > > > On 3/8/12, Meir Yanovich wrote: > > i have in my tomcat web application log4j that is configured like this : > > > > > > 1. > debug="true"> > > 2. class="org.apache.log4j.RollingFileAppender" > > > > > 3. > > 4. > > 5. > > 6. value="${catalina.home}/logs/myapp_gw.log" > > /> > > 7. > > 8. > > 9. > "%d{ISO8601} %t %-5p [%c{1}] %m%n "/> > > 10. > > 11. > > 12. ... > > 13. .... > > 14. ... > > > > configured 100kb just to get quick > > testresults , any way it > > seams like log4j roll the log only once and each time > > he detects that he need to make roll it just changes the previous file > name > > and keep outputting to the main log file , i set log4j debug mode and the > > output it gives me looks like this : > > > > log4j: rolling over count=820961 > > log4j: maxBackupIndex=15 > > log4j: Renaming file C:\Tomcat\logs\myapp_gw.log.8 to > > C:\Tomcat\logs\myapp_gw.log.9 > > log4j: Renaming file C:\Tomcat\logs\myapp_gw.log to > > C:\Tomcat\logs\myapp_gw.log.1 > > log4j: setFile called: C:\Tomcat/logs/myapp_gw.log, true > > log4j: setFile ended > > > > > > as you can see it renaming me the myapp_gw.log.8 to myapp_gw.log.9 but > > doesn't keep the myapp_gw.log.8 , > > i need it to keep as i configured history of 15 files . what i need wrong > > here ? > > thanks > > > > -- > Sent from my mobile device > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org > > --20cf303f63b869e3c404bac970d0--