Johannes Kilian wrote on 8/18/2004, 6:00 AM:
> SIG{__DIE__} = sub {
> print STDERR @_;
> exit;
> };
Wow, that's an interesting bug, you can work around it by specifying
log4perl.appender.Logfile.layout = \
Log::Log4perl::Layout::PatternLayout
instead of
log4perl.appender.Logfile.layout = PatternLayout
I need to investigate why this happens, here's a snippet to reproduce it:
$SIG{__DIE__} = sub {
print STDERR @_;
exit;
};
use Log::Log4perl qw(get_logger);
my $conf = q(
log4perl.category.Bar.Twix = WARN, Logfile
log4perl.appender.Logfile = Log::Log4perl::Appender::File
log4perl.appender.Logfile.filename = test.log
log4perl.appender.Logfile.layout = PatternLayout
log4perl.appender.Logfile.layout.ConversionPattern = %m%n
);
Log::Log4perl::init(\$conf);
my $logger = get_logger("Bar::Twix");
$logger->error("Blah");
--
-- Mike
Mike Schilli
m...@pe...
|