On Fri, 12 Feb 2010, Jay wrote:

> log4perl.logger.pnoc=DEBUG, FileAppndr1
> log4perl.appender.FileAppndr1=Log::Log4perl::JavaMap::RollingFileAppender

With the JavaMap appenders, you have to say

     log4perl.appender.FileAppndr1=org.apache.log4j.RollingFileAppender

instead of

       # wrong
     log4perl.appender.FileAppndr1=Log::Log4perl::JavaMap::RollingFileAppender

and it should work fine.

By the way, is there any reason you're not using
Log::Dispatch::FileRotate directly? Here's an example:

http://search.cpan.org/dist/Log-Log4perl/lib/Log/Log4perl/FAQ.pm#How_can_I_roll_over_my_logfiles_automatically_at_midnight?

Hope this helps.

-- Mike

Mike Schilli
m...@perlmeister.com

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel

Reply via email to