|
From: Ronald F. <yn...@mm...> - 2009-10-05 09:07:47
|
According to the docs:
"Log::Log4perl::Appender::Screen - Log to STDOUT/STDERR"
I have defined a screen appender like this:
log4perl.appender.Screen=Log::Log4perl::Appender::Screen
log4perl.appender.Screen.layout=Log::Log4perl::Layout::PatternLayout
log4perl.appender.Screen.layout.ConversionPattern=%.1p %d{HH:mm}
%M{2}(%L) %m%n
But when I run my program with redirection, say
myprog.pl .... >screen.log
the logging output still is displayed on the console, and screen.log
ends up with length zero.
This is on Windows 2000 using ActiveState Perl.
Ronald
--
Ronald Fischer <ro...@em...>
+ If a packet hits a pocket on a socket on a port,
+ and the bus is interrupted and the interrupt's not caught,
+ then the socket packet pocket has an error to report.
+ (cited after Peter van der Linden)
|