log4j

Kaushal Shriyan kaushalshriyan at gmail.com
Thu Jul 8 11:20:24 UTC 2010


On Thu, Jul 8, 2010 at 4:34 PM, Hakan Koseoglu <hakan at koseoglu.org> wrote:
> Kaushal,
> On 08/07/10 11:26, Kaushal Shriyan wrote:
>> Is there a way to run log4j appender at a specified time?
> I am not sure what you mean.
> Do you want to specify when the file rolls over?
> The data pattern can take 'yyyy-MM-dd-HH' or 'yyyy-MM-dd-HH-mm' format
> to roll over hourly or minutely.
> See the log4j's apidoc for more details.

Hakan,

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

Please suggest/guide

Thanks,

Kaushal




More information about the ubuntu-server mailing list