in reply to Re: Wrapper class for log4perl redirects to wrong log file
in thread Wrapper class for log4perl redirects to wrong log file
Upgrading seems to have no impact on current issue.Module id = Log::Log4perl INST_VERSION 0.41
database.pm:my $log = MyLogger::->new("apache"); $log->fatal("This should be in the APACHE log"); my $retval = database::do_some_logging(); $log->fatal("This should be in the APACHE log");
database.log:my $log = MyLogger::->new("database"); sub do_some_logging { $log->warn("This should appear in DATABASE log." +); }
apache.log (edited for readability)[empty]
FATAL> This should be in the APACHE log WARN> This should appear in DATABASE log. FATAL> This should be in the APACHE log
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Wrapper class for log4perl redirects to wrong log file
by PodMaster (Abbot) on Feb 09, 2004 at 17:17 UTC |