log4j
Hakan Koseoglu
hakan at koseoglu.org
Thu Jul 8 12:14:06 UTC 2010
Hi Kaushal,
On 08/07/10 12:20, Kaushal Shriyan wrote:
> Basically if i set log4j.appender.R.DatePattern='.'yyyy-MM-dd in
> log4j.properties It rolls over at midnight. is there a way to roll
> over at say 12:00 Noon
If you check the available options you can see that
DailyRollingFileAppender has limited options on that. One of the options
is rolling over at midnight and midday, see this link for built-in
available options:
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/DailyRollingFileAppender.html
You can easily subclass this and write your own appender with additional
rules or google if someone else already done it.
More information about the ubuntu-server
mailing list