ceki        02/03/28 01:16:07

  Added:       contribs/KevinSteppe mail-2002-03-27.txt
  Log:
  Added CompositeRollingAppender.java contributed by Kevin Steppe
  
  Revision  Changes    Path
  1.1                  jakarta-log4j/contribs/KevinSteppe/mail-2002-03-27.txt
  
  Index: mail-2002-03-27.txt
  ===================================================================
  Received: (qmail 12476 invoked from network); 28 Mar 2002 06:19:49 -0000
  Date: Wed, 27 Mar 2002 22:28:58 -0800
  From: Kevin Steppe <[EMAIL PROTECTED]>
  Subject: Re: RollingFileAppender and DailyRollingFileAppender
  To: Log4J Users List <[EMAIL PROTECTED]>
  Reply-To: [EMAIL PROTECTED]
  Message-id: <[EMAIL PROTECTED]>
  MIME-version: 1.0
  X-Mailer: Mozilla 4.7 [en] (WinNT; I)
  Content-type: multipart/mixed; boundary="Boundary_(ID_TnKsnil+d0oYB9TV0P+fgA)"
  X-Accept-Language: en
  References:
   <[EMAIL PROTECTED]>
  X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
  
  I wrote a CompositeRollingAppender last August to do that.  I'm attaching that
  code and some example config files to you separately.
  
  Ceki... Could you please put these files in the log4j/contribs/KevinSteppe
  folder of the available releases?  This seems to be coming up occasionally and
  it would be more convenient to just point people there.
  
  Thanks,
  Kevin
  
  
  Janusz Dalecki wrote:
  
  > Is there a way of having the mixture of both RollingFileAppender and
  > DailyRollingFileAppender options?. I have a requirement to log daily and
  > delete old files weekly.
  > Thanks,
  > Janusz
  >
  > --
  > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
  > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
  
  #Config file for CompositeRollingAppender
  #This is an example config to use CompositeRollingAppender in Size based Backups only
  
  log4j.rootCategory=debug, R
  log4j.appender.R=org.apache.log4j.CompositeRollingAppender
  
  #How to perform rolling -- 1 = By Size
  #Note -- this is the only difference from RollingFileAppender!
  log4j.appender.R.RollingStyle=1
  
  #file to log to
  log4j.appender.R.File=example.log
  
  #Size Rolling params
  log4j.appender.R.MaxFileSize=10MB
  log4j.appender.R.MaxSizeRollBackups=10
  
  #layout options
  log4j.appender.R.layout=org.apache.log4j.PatternLayout
  log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
  #Config file for CompositeRollingAppender
  #This is an example config to use CompositeRollingAppender in Time based Backups only
  
  log4j.rootCategory=debug, R
  log4j.appender.R=org.apache.log4j.CompositeRollingAppender
  
  #How to perform rolling -- 2 = By Time
  #Note -- this is the only difference from DailyRollingFileAppender!
  log4j.appender.R.RollingStyle=2
  
  #file to log to
  log4j.appender.R.File=example.log
  
  #Date Rolling params
  log4j.appender.R.datePattern='.'yyyy-MM-dd
  
  #layout options
  log4j.appender.R.layout=org.apache.log4j.PatternLayout
  log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
  #Default Config file for CompositeRollingAppender
  log4j.rootCategory=debug, R
  
  log4j.appender.R=org.apache.log4j.CompositeRollingAppender
  
  #How to perform rolling -- Composite is the default
  log4j.appender.R.RollingStyle=3
  
  #Use same file name for all inprocess logging?
  log4j.appender.R.staticLogFileName=true
  log4j.appender.R.File=example.log
  
  #Size Rolling params
  log4j.appender.R.CountDirection=-1
  log4j.appender.R.MaxFileSize=5KB
  log4j.appender.R.MaxSizeRollBackups=10
  
  #Date Rolling params
  log4j.appender.R.datePattern='.'yyyy-MM-dd
  
  #layout options
  log4j.appender.R.layout=org.apache.log4j.PatternLayout
  log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
  
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to