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 Fri, 02 Sep 2005 08:25:48 GMT
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


Mime
View raw message