From: Mark K. <mar...@bt...> - 2005-01-29 16:13:48
|
Thanks Mike. file_switch() works fine. Still couldn't get Log::Dispatch::FileRotate working. install Log-Dispatch-FileRotate gave me a 404 and if I just download the cpan module and install it manually it doesn't seem to work. I would be interested to know if anyone has got it working in ActivePerl but for now file_switch does the trick. Cheers Mark > -----Original Message----- > From: Mike Schilli [mailto:m...@pe...] > Sent: 28 January 2005 21:59 > To: log...@li... > Cc: Mark Knoop > Subject: > > > "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... > > |