Let me ellaborate, my properties looks like this at the moment :-

log4j.rootLogger=DEBUG, A1
log4j.appender.A1=org.apache.log4j.RollingFileAppender
log4j.appender.A1.File=audit.log
log4j.appender.A1.Append=false
log4j.appender.A1.Threshold=DEBUG
log4j.appender.A1.MaxFileSize=1MB
log4j.appender.A1.MaxBackupIndex=10

Now, I wish to change the "usual rollover behavior", as decribed in 
RollingFillAppender.rollOver(), but I don't want to actually override the java method. 
I was hoping there would be an alternative behavior to select or even a "plugin" 
(hacked RollingFileAppender class) that I could use!?!

> -----Original Message-----
> From: Xi Yuxiang [mailto:[EMAIL PROTECTED]
> Sent: Friday 12 March 2004 03:03
> To: [EMAIL PROTECTED]
> Subject: RE: rollover behavior
> 
> 
> i agree.
> no rename behavior, just name a file with 
> <file>2004-03-01,<file>2004-03-02, that will works and donot have the 
> rename fail error.
> 
> 
> >From: "Carl Brenton" <[EMAIL PROTECTED]>
> >Reply-To: "Log4J Users List" <[EMAIL PROTECTED]>
> >To: "Log4J Users List (E-mail)" <[EMAIL PROTECTED]>
> >Subject: rollover behavior
> >Date: Thu, 11 Mar 2004 15:23:06 -0000
> >
> >Is it possible to (simply) change the rollover behavior to 
> prevent the 
> file renaming? I would like <File>.1 to be the first file and 
> so on. I have 
> Append turned off.
> >I guess if Append was on then it would append to the 
> "highest" <File> 
> version it can find?
> >
> >tia
> >
> >Carl
> >
> >
> >
> >This message has been scanned for viruses by MailControl - 
> www.mailcontrol.com
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> _________________________________________________________________
> 享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


This message has been scanned for viruses by MailControl - www.mailcontrol.com

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

Reply via email to