From: Mike S. <m...@pe...> - 2005-01-28 21:59:43
|
"Mark Knoop" <mar...@bt...> wrote: > Apologies if this is covered somewhere already. > I have had some fun trying to rotate a log4perl log file. > I tried switch_file with Log4perl::Dispatch::File and > Log4perl::Appender::File but there doesn't seem to be a switch_file > method present for either Sorry, that's a documentation bug. Log4perl::Appender::File has a file_switch() method (the docs said "switch_file()", I've corrected it in 0.52). > so I decided to use > Log::Dispatch::FileRotate instead but it seems it is not present in > the http://log4perl.sourceforge.net/ppm repository. Log::Dispatch::FileRotate is a separate module on CPAN, not bundled with Log4perl, try ppm> install Log-Dispatch-FileRotate -- Mike Mike Schilli m...@pe... |