On Wed, 14 Nov 2007, Joe Wong wrote:

> I came into a very strange behaviour of initializing log4perl. I am
> using mod_perl, with a startup handler (startup.pl). I put
> Log::Log4Perl::init_once(config_file) there. However, when I tried to
> call get_logger() in my module, I got error saying that Log4perl is
> not initialized. How should I init Log4perl in mod_perl environment?

Either in the startup handler or at the request phase:

    http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#792b4

-- Mike

Mike Schilli
[EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel

Reply via email to