in reply to [SOLVED] Log::Log4perl and Log::Dispatch::FileRotate: Issues rotating log files based on date pattern
log4perl.appender.Logfile.filename = sub { my $date = POSIX::strftime('%Y-%m-%d', localtime ); return "myapp-$date.log"; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Log::Log4perl and Log::Dispatch::FileRotate: Issues rotating log files based on date pattern (rotate log every day)
by ateague (Monk) on Jan 30, 2015 at 17:54 UTC |