in reply to Re: Log4perl & Apache
in thread Log4perl & Apache

How can I run Log::Log4perl under mod_perl?

Replies are listed 'Best First'.
Re^3: Log4perl & Apache (mod_perl)
by theguest (Initiate) on Apr 29, 2013 at 14:46 UTC
    Thanks for the link. I use Log::Log4perl::Catalyst (part of the Log::Log4perl package), so Log4perl is automatically initialized only once. I modified my config so log4perl in no longer async
    log4perl.rootLogger = INFO, Syncer log4perl.appender.Syncer = Log::Log4perl::Appender::Synchronized log4perl.appender.Syncer.appender = LOGFILE log4perl.appender.LOGFILE=Log::Log4perl::Appender::File .... ....
    but still no furhter log entries were generated, only the inital one during apache startup. This is how i integrate log4perl:
    use Log::Log4perl::Catalyst; .... __PACKAGE__->log(Log::Log4perl::Catalyst->new(__PACKAGE__->path_to('lo +g4perl.conf')->stringify)); ....