AFAICT, the closest to what you are looking for would be the DailyRolingFileAppender - it automatically renames old example.log to example.log.date format at midnight, when the new day file is created.
But, then there are few (significant) catches - there is no option to automatically delete old files (really a pain). Also, it has been deprecated in log4j (in favor of using strategy design pattern, I believe), so I guess it will go away in log4cxx as well.
Alex
"Ambarish Mitra" <[EMAIL PROTECTED]> wrote on 02/21/2005 08:07:49 AM:
> Hi,
>
> Can I have time stamp in log file name?
>
> To elaborate, if my entries in the property files are:
> ...
> log4j.appender.R=org.apache.log4j.RollingFileAppender
> log4j.appender.R.File=../logs/example.log
> ..
>
> Now, I want that instead of log file name: example.log, I want the name as
> example.log.<time> of creation, is there any way to accomplish this?
>
> -Ambarish.
>
>
> [attachment "winmail.dat" deleted by Aleksandar Fabijanic/Maintenance/NSB]
- Re: Apache Log4cxx build fails with gcc 2.95 under Sol... Chris Williams
- Build problem using ant off of CVS HEAD Chris Williams
- Re: Build problem using ant off of CVS HEAD Curt Arnold
- Apache Log4cxx build fails with gcc 2.95.3 under Solaris 8 Ambarish Mitra
- Re: Apache Log4cxx build fails with gcc 2.95.3 under S... Curt Arnold
- Apache Log4cxx build fails with gcc 3.3.2 under Solari... Ambarish Mitra
- Re: Apache Log4cxx build fails with gcc 3.3.2 unde... Curt Arnold
- RE: Apache Log4cxx build fails with gcc 3.3.2 unde... Ambarish Mitra
- Can I have time stamp in log file name? Ambarish Mitra
- No appenders could be found for logger FabijanicA
- No appenders could be found for logger Ambarish Mitra
- RE: No appenders could be found for l... Ambarish Mitra
