Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 48592 invoked from network); 6 Sep 2005 09:11:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Sep 2005 09:11:08 -0000 Received: (qmail 27487 invoked by uid 500); 6 Sep 2005 09:11:01 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 27448 invoked by uid 500); 6 Sep 2005 09:11:01 -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 27435 invoked by uid 99); 6 Sep 2005 09:11:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 02:11:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [204.119.233.102] (HELO mail.lightsurf.com) (204.119.233.102) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 02:11:13 -0700 Received: from mail.lightsurfindia.com (mail.lightsurfindia.com [192.168.1.10]) by mail.lightsurf.com (MOS 3.5.3-GR) with ESMTP id CFM27400; Tue, 6 Sep 2005 02:10:56 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.lightsurfindia.com (Postfix) with ESMTP id 447D51DC1E7; Tue, 6 Sep 2005 14:55:33 +0530 (IST) Received: from mail.lightsurfindia.com ([127.0.0.1]) by localhost (mail.lightsurfindia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16355-02; Tue, 6 Sep 2005 14:55:29 +0530 (IST) Received: from [192.168.2.52] (unknown [192.168.2.52]) by mail.lightsurfindia.com (Postfix) with ESMTP id E6BDE1DC160; Tue, 6 Sep 2005 14:55:28 +0530 (IST) Subject: RE: Problem in RollingFileAppender From: Arunkumar Soundararajan To: Log4J Users List Cc: oops@telcoware.com In-Reply-To: <1125987775.20837.3.camel@lti52.lightsurfindia.com> References: <001501c5af9b$1f34e8c0$23020a0a@oops> <1125987775.20837.3.camel@lti52.lightsurfindia.com> Content-Type: text/plain Message-Id: <1125997788.20835.52.camel@lti52.lightsurfindia.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Tue, 06 Sep 2005 14:39:48 +0530 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at lightsurf.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Can it be because - if we start and stop the server it writes with 0 bytes? Arun On Tue, 2005-09-06 at 11:52, Arunkumar Soundararajan wrote: > Hi > > Im still getting some of the files as 0 bytes after your suggestion. Any > more clues? > > Please see below how the logs are created. > > -rw-r--r-- 1 lsadm lsurf 157287531 Sep 5 09:45 > sprint-alerts-de.log.8 > -rw-r--r-- 1 lsadm lsurf 0 Sep 5 11:00 > sprint-alerts-de.log.7 > -rw-r--r-- 1 lsadm lsurf 108698762 Sep 5 11:00 > sprint-alerts-de.log.20050905.11 > -rw-r--r-- 1 lsadm lsurf 157286476 Sep 5 13:15 > sprint-alerts-de.log.6 > -rw-r--r-- 1 lsadm lsurf 157286410 Sep 5 15:00 > sprint-alerts-de.log.5 > -rw-r--r-- 1 lsadm lsurf 157286476 Sep 5 16:45 > sprint-alerts-de.log.4 > -rw-r--r-- 1 lsadm lsurf 157286532 Sep 5 18:30 > sprint-alerts-de.log.3 > -rw-r--r-- 1 lsadm lsurf 119168741 Sep 5 20:00 > sprint-alerts-de.log.20050905.20 > -rw-r--r-- 1 lsadm lsurf 0 Sep 5 20:00 > sprint-alerts-de.log.2 > -rw-r--r-- 1 lsadm lsurf 135802018 Sep 5 22:00 > sprint-alerts-de.log.20050905.22 > -rw-r--r-- 1 lsadm lsurf 0 Sep 5 22:00 > sprint-alerts-de.log.1 > -rw-r--r-- 1 lsadm lsurf 900 Sep 5 22:01 > backup_resin_stderr.090405 > -rw-r--r-- 1 lsadm lsurf 1560 Sep 5 22:09 > backup_resin_stderr.090505 > -rw-r--r-- 1 lsadm lsurf 146617 Sep 5 22:11 > back_up_sprint-alerts-de.log > -rw-r--r-- 1 lsadm lsurf 1094924 Sep 5 23:15 access.log > -rw-r--r-- 1 lsadm lsurf 106243038 Sep 5 23:20 > sprint-alerts-de.log > > Arun > > > > > > On Fri, 2005-09-02 at 14:18, oops wrote: > > Hi.. > > > > I think the problem is MaxBackupIndex. > > The feature may be changed but... I saw the Log4j Manual "The Complete > > log4j manual [Ceki Gulcu]" ( November 20th, 2002) > > > > In there the MaxBackupIndex should surpass 10. > > > > I hope this will help you.. > > > > > > Regards.. > > Joey Shin. > > > > > > > -----Original Message----- > > > From: Arunkumar Soundararajan > > > [mailto:soundararajan.arun@lightsurf.com] > > > Sent: Friday, September 02, 2005 5:26 PM > > > To: Log4J > > > Subject: RE: Problem in RollingFileAppender > > > > > > > > > Hi > > > > > > Here it is > > > > > > > > > > > > > > > > > > > > class="org.apache.log4j.RollingFileAppender"> > > > > > value="/var/lsurf/log/sprint-alerts-cps/sprint-alerts-cps.log"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hoping for an early answer.. > > > > > > Regards > > > > > > > > > Arunkumar.S > > > > > > > > > On Fri, 2005-09-02 at 13:12, oops wrote: > > > > Hello. > > > > > > > > How about show the properties files? > > > > > > > > > > > > My setting is like below. > > > > > > > ====================================================================== > > > > log4j.appender.stdout=org.apache.log4j.ConsoleAppender > > > > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout > > > > log4j.appender.stdout.layout.ConversionPattern=%5p (%F:%L) - %m%n > > > > > > > > log4j.appender.R=org.apache.log4j.RollingFileAppender > > > > log4j.appender.R.File=/usr/log/mylogfile.log > > > > log4j.appender.R.MaxFileSize=1MB log4j.appender.R.MaxBackupIndex=9 > > > > log4j.appender.R.layout=org.apache.log4j.PatternLayout > > > > log4j.appender.R.layout.ConversionPattern=%d{HH:mm:ss} > > > [%5p] (%F:%L) [%M] - > > > > %m%n > > > > log4j.rootLogger=debug, R > > > > > > > ====================================================================== > > > > > > > > > -----Original Message----- > > > > > From: Arunkumar Soundararajan > > > > > [mailto:soundararajan.arun@lightsurf.com] > > > > > Sent: Friday, September 02, 2005 4:28 PM > > > > > To: Log4J > > > > > Subject: Problem in RollingFileAppender > > > > > > > > > > > > > > > Hi all > > > > > > > > > > Want to know if anyone has made use of RollingFileAppender? > > > > > Im facing problems while rolling after a particular time - > > > > > that is when it reaches max size - it is not able to roll to > > > > > the next file automatically. Please help > > > > > > > > > > Arun > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > > - > > > > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > > > > > For additional commands, e-mail: > > > log4j-user-help@logging.apache.org > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > > > For additional commands, e-mail: log4j-user-help@logging.apache.org > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > > For additional commands, e-mail: log4j-user-help@logging.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org