logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arunkumar Soundararajan <soundararajan.a...@lightsurf.com>
Subject RE: Problem in RollingFileAppender
Date Tue, 06 Sep 2005 09:09:48 GMT
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
> > > 
> > > <?xml version="1.0" encoding="UTF-8" ?>
> > > <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> 
> > > <log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
> > >   <!--<appender name="STDOUT" 
> > > class="org.apache.log4j.ConsoleAppender">-->
> > >   <appender name="STDOUT" 
> > > class="org.apache.log4j.RollingFileAppender">
> > >     <param name="File" 
> > > value="/var/lsurf/log/sprint-alerts-cps/sprint-alerts-cps.log"/>
> > >     <param name="MaxFileSize" value="250MB"/>
> > >     <param name="MaxBackupIndex" value = "50" />
> > >     <!--<param name="Target" value="System.out" />-->
> > >     <layout class="org.apache.log4j.PatternLayout">
> > >       <param name="ConversionPattern" value="%d{ABSOLUTE} %5p 
> > > [%t] %c{1}:%L - %m%n"/>
> > >     </layout>
> > >   </appender>
> > >   <category name="com.lightsurf.alertscore">
> > >     <priority value="info" />
> > >   </category>
> > >   <root>
> > >     <priority value="warn" />
> > >     <appender-ref ref="STDOUT" />
> > >   </root>
> > > </log4j:configuration>
> > > 
> > > 
> > > 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


Mime
View raw message