From: Cereda M. <Mar...@si...> - 2006-07-25 13:23:52
|
Thanks, Now it runs! It was necessary to download all the following packages: - Log4Perl=20 - Log::Dispatch::FileRotate=20 - Params::Validate - Date::Manip Stella =20 > -----Original Message----- > From: Mike Schilli [mailto:m...@pe...]=20 > 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 >=20 > On Fri, 21 Jul 2006, Cereda Maria_stella wrote: >=20 > > 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=20 > > 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=20 > > else >=20 > Actually, you need to download Log::Dispatch::FileRotate from=20 > CPAN, it's not part of Log4perl: >=20 > http://search.cpan.org/dist/Log-Dispatch-FileRotate/ >=20 > Here's how to set up Log4perl to use it: >=20 > http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#923b3 >=20 > and, alternatively also check out how to rotate logfiles with > newsyslog: >=20 > http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#2d0d0 >=20 > Hope that helps! >=20 > -- Mike >=20 > Mike Schilli > m...@pe... >=20 > > > > Have I made any error? > > > > This is my config file: > > > > log4perl.logger.tas =3D INFO,tasLog > > #log4perl.appender.tasLog=3DLog::Log4perl::Appender::File > > > > = log4perl.appender.tasLog=3DLog::Log4perl::JavaMap::RollingFileAppender > > log4perl.appender.tasLog.mode=3Dappend > > log4perl.appender.tasLog.filename=3Dtas.log > > log4perl.appender.tasLog.size=3D100 > > log4perl.appender.tasLog.max=3D5 > > > > thanks > > > > Ciao > > Stella > > >=20 |