|
From: Mike S. <m...@pe...> - 2010-02-17 16:50:16
|
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...@pe...
|