logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: Modifying logFilePath for FileAppender using a PropertyConfigurator
Date Tue, 09 Dec 2008 17:01:29 GMT

On Dec 9, 2008, at 10:36 AM, david.weber@l-3com.com wrote:

> So, I answered my own question by searching a bit more on google.
>
> The syntax is ${ENVIRONMENT_VARIABLE}/directory/fileName.txt
>
> Now, one more question:
> How does one set up the logger to create a unique log file per run.   
> I'm
> looking at dailyRollingFileAppender, 'cause I'm pretty sure something
> does what I want.
>
> Thanks
>
> --dw
>

Look at log4cxx::rolling::RollingFileAppender.  You could provide your  
own triggering policy that rotates the files on first log statement or  
you could override the class to rollOver() on startup.

Mime
View raw message