You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "madrignani@libero.it" <ma...@libero.it> on 2002/03/25 17:02:51 UTC

DailyFileAppender question

hi all,
can anyone tell me 
* if there is a way of using the DailyFileAppender class forcing the 
system to rename the log file both when the date changes AND when a 
specified maxFileSize has been reached?
* where I should affect to set the final logfilename as 
DATE_fileName.log?

thx in advance

laura

Re: DailyFileAppender question

Posted by Kevin Steppe <ks...@pacbell.net>.
This is probably better for the User list...

1) I created a CompositeRollingFileAppender sometime back which a few
people use.  The code is attached along with a couple example config
files.
2) To my knowledge none of the rolling appenders can do this.  You are
welcome to modify code...

Kevin


"madrignani@libero.it" wrote:

> hi all,
> can anyone tell me
> * if there is a way of using the DailyFileAppender class forcing the
> system to rename the log file both when the date changes AND when a
> specified maxFileSize has been reached?
> * where I should affect to set the final logfilename as
> DATE_fileName.log?
>
> thx in advance
>
> laura