On Mon, 5 Oct 2009, Ronald Fischer wrote: > 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.
By default, the screen appender writes to STDERR, which your redirection doesn't capture. To have it to write to STDOUT instead, use log4perl.appender.Screen.stderr = 0 in your configuration file. -- Mike Mike Schilli m...@perlmeister.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel