|
From: Mike S. <m...@pe...> - 2006-07-25 05:37:11
|
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
>
|