logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: dailyrollingfileappender cannot rollover when application is not running.
Date Thu, 05 Sep 2002 20:33:45 GMT
At 13:57 05.09.2002 -0400, you wrote:
>Hi,
>         I have a question regarding log4j properties.I want my log file to
>roll every day.
>         I am trying to use DailyRollingFileAppender.
>
>
>log4j.appender.FileAppender=org.apache.log4j.DailyRollingFileAppender
>         log4j.appender.FileAppender.File=./logs/client-log.txt
>         log4j.appender.FileAppender.layout=org.apache.log4j.PatternLayout
>         log4j.appender.FileAppender.layout.ConversionPattern=%c-%p,
>%d{DATE}, %t-%C{3} -- %m%n
>         log4j.appender.FileAppender.DatePattern='.'yyyy-MM-dd
>
>         Actually this appender with these parameters tries to roll at
>midnight.So if the application using log4j is not running at midnight it
>wont rollover.

Yes, but it will rollover when you restart your application.


--
Ceki

TCP implementations will follow a general principle of robustness: be
conservative in what you do, be liberal in what you accept from
others. -- Jon Postel, RFC 793



--
To unsubscribe, e-mail:   <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@jakarta.apache.org>


Mime
View raw message