hello, James

unfortunately we can't work on the batch file.
So, what we want to konw are

1) Is it the right way to repeatedly open->write->close the current log file
by create and remove RollingFileAppenders per every logging event?

2) Why the backup log files index got incorrect when we perform the
operation described in 1)  ?

regards

> -----Original Message-----
> From: James Stauffer [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 26, 2005 12:32 AM
> To: Log4J Users List
> Subject: Re: RollingFileAppender not work
> 
> Can you just make the batch program only grab the backed-up 
> files (not the current file)?
> 
> On 7/25/05, 洪春植 <[EMAIL PROTECTED]> wrote:
> > hello, all
> > 
> > We are now using log4j.RollingFileAppender class to store logs at 
> > server side, and we have a batch program which gethers 
> those log files 
> > running at AM 0:00 every day.
> > The batch program can remove those backed-up log files 
> (xxx.log.1 etc) 
> > , but it is failed to remove current log file , because the 
> log file 
> > is still openning.
> 
> --
> James Stauffer
> Are you good? Take the test at http://www.livingwaters.com/good/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to