logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Stauffer" <stauffer.ja...@gmail.com>
Subject Re: logging to a file in a rotating directory
Date Mon, 19 Jun 2006 22:41:01 GMT
The file should do it for you:
http://stauffer.james.googlepages.com/DateFormatFileAppender.java

On 6/19/06, Chris Cheshire <cheshirator@gmail.com> wrote:
> I want to to change my apps (command line, not web driven) over to use
> log4j, instead of my current custom solution. Each app has its own log
> directory "logs/YYYY/MM/DD" where the logs (myapp.log) and other
> generated files are written.
>
> The daily rolling appender isn't really what I want, as I don't want
> all the logs dumped in one directory with different timestamps
> appended to them. I just want to be able to generate a myapp.log in
> the appropriate date directory each time the app runs, appending to
> the file if it exists.
>
> What appender do I use, and how do I configure it to do this?
>
> Thanks
>
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message