|
From: Mike S. <m...@pe...> - 2007-11-14 17:48:21
|
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
m...@pe...
|