in reply to How can I roll over my log files automatically at midnight with Log4 Perl?

There is a TZ property that you can set on the Log::Dispatch::FileRotate appender. You need to set it so that it knows when local midnight is.

You profile says you are in Bangalore, and Google suggests that your local timezone is IST, so you probably want to add a line like this to your log4perl config:

log4perl.appender.Logfile.TZ=IST
  • Comment on Re: How can I roll over my log files automatically at midnight with Log4 Perl?
  • Download Code