Do you have a question? Post it now! No Registration Necessary. Now with pictures!
May 28, 2011, 12:56 am
rate this thread
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 FileRotate.pm here
I came to know that we can use FileRotate instead of File::Rolling by
........... DatePattern => 'yyyy-mm-dd-hh-mm',
But can this functionality be incorporated into File::Rolling some
how ? Is the parameter DatePattern supported in Rolling.pm ?
something like this...
.............log4perl.appender.Commands.DatePattern = yyyy-mm-dd-hh-mm
Suggestions would be helpful.