Problem with hourly rotating logs using Log4perl module ...

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hi all,

I want a logging where log filename is timestamped. Currently my code
is using appender of
type = Log::Dispatch::File::Rolling

But I dont think that File::Rolling supports hour based rolling ?
Please correct me if I am wrong.

After reading about here

I came to know that we can use FileRotate instead of File::Rolling by
passing a

........... DatePattern => 'yyyy-mm-dd-hh-mm',

But can this functionality be incorporated into File::Rolling some
how ?  Is the parameter DatePattern supported in ?

something like this...

.............log4perl.appender.Commands.DatePattern = yyyy-mm-dd-hh-mm

Suggestions would be helpful.

Site Timeline