Re: [log4perl-devel] Wrapper class question

2007-08-21 Thread Robert Hicks
Mike Schilli wrote: > On Tue, 21 Aug 2007, Robert Hicks wrote: > >> sub get_logger { my $class = shift; my $module_name = shift; >> >> unless( Log::Log4perl->initialized ) { >> >> # watch the config file for changes (in seconds) >> Log::Log4perl->init_and_watch( "log4perl.co

Re: [log4perl-devel] Wrapper class question

2007-08-21 Thread Mike Schilli
On Tue, 21 Aug 2007, Robert Hicks wrote: > sub get_logger { my $class = shift; my $module_name = shift; > > unless( Log::Log4perl->initialized ) { > > # watch the config file for changes (in seconds) > Log::Log4perl->init_and_watch( "log4perl.conf", 60 ); > $Log::Lo

[log4perl-devel] Wrapper class question

2007-08-21 Thread Robert Hicks
Cees posted this on Perlmonks and it "works" but I get [undef] for filename and line. sub get_logger { my $class = shift; my $module_name = shift; unless( Log::Log4perl->initialized ) { # watch the config file for changes (in seconds) Log::Log4perl->init_and_wat