From: Mike S. <m...@pe...> - 2006-07-25 17:14:05
|
On Tue, 25 Jul 2006, Cereda Maria_stella wrote: > Thanks, > Now it runs! > > It was necessary to download all the following packages: > - Log4Perl > - Log::Dispatch::FileRotate > - Params::Validate > - Date::Manip Correct. Params::Validate and Date::Manip are prereqs for Log::Dispatch::FileRotate (which it lists correctly), a cpan shell will download them automatically when installing Log::Dispatch::FileRotate. -- Mike Mike Schilli m...@pe... > Stella > > > -----Original Message----- > > From: Mike Schilli [mailto:m...@pe...] > > Sent: sabato 22 luglio 2006 7.07 > > To: Cereda Maria_stella > > Cc: log...@li... > > Subject: Re: [log4perl-devel] can't locate Log/Dispatch/FileRotate.pm > > > > On Fri, 21 Jul 2006, Cereda Maria_stella wrote: > > > > > I' ve downloaded the latest release of Log4Perl ( 1.06 ). > > > I use it with my own log file. > > > I want to rotate the log file, so I use > > > Log::Log4perl::JavaMap::RollingFileAppender, > > > but I obtain the error 'can't locate Log/Dispatch/FileRotate.pm'. > > > > > > In the tar file there isn't this file . Should I download something > > > else > > > > Actually, you need to download Log::Dispatch::FileRotate from > > CPAN, it's not part of Log4perl: > > > > http://search.cpan.org/dist/Log-Dispatch-FileRotate/ > > > > Here's how to set up Log4perl to use it: > > > > http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#923b3 > > > > and, alternatively also check out how to rotate logfiles with > > newsyslog: > > > > http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#2d0d0 > > > > Hope that helps! > > > > -- Mike > > > > Mike Schilli > > m...@pe... > > > > > > > > Have I made any error? > > > > > > This is my config file: > > > > > > log4perl.logger.tas = INFO,tasLog > > > #log4perl.appender.tasLog=Log::Log4perl::Appender::File > > > > > > log4perl.appender.tasLog=Log::Log4perl::JavaMap::RollingFileAppender > > > log4perl.appender.tasLog.mode=append > > > log4perl.appender.tasLog.filename=tas.log > > > log4perl.appender.tasLog.size=100 > > > log4perl.appender.tasLog.max=5 > > > > > > thanks > > > > > > Ciao > > > Stella > > > > > > |