<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=285024409-08052008><FONT face=Arial
size=2>Hi</FONT></SPAN></DIV>
<DIV><SPAN class=285024409-08052008><FONT face=Arial size=2>I'm working with
some code which uses Log::Log4perl with a config like this
:-</FONT></SPAN></DIV>
<DIV><SPAN class=285024409-08052008><FONT face=Arial size=2>
my %settings = (<BR>
'log4perl.rootLogger'
=> 'DEBUG, LOGFILE',<BR>
'log4perl.category.rrdtool'
=> 'WARN, LOGFILE',<BR>
'log4perl.category.RRDTool.OO' => 'WARN,
LOGFILE',<BR>
'log4perl.appender.LOGFILE'
=>
'Log::Log4perl::Appender::File',<BR>
'log4perl.appender.LOGFILE.filename' =>
$filename,<BR>
'log4perl.appender.LOGFILE.layout' =>
'PatternLayout',<BR>
'log4perl.appender.LOGFILE.layout.ConversionPattern'
=><BR> '[%d] %-20F{1}
%-5p - %-6P - %m%n',<BR> );<BR>
Log::Log4perl->init( \%settings );<BR> </FONT></SPAN></DIV>
<DIV><SPAN class=285024409-08052008><FONT face=Arial size=2>Which logs all
output to a log file and nothing goes to the screen.</FONT></SPAN></DIV>
<DIV><SPAN class=285024409-08052008><FONT face=Arial size=2>The trouble with
this is that when an error happens, it only gets written to the log file and
nothing goes to the screen so unless you check the response code and/or the log
file you don't know when something failed.</FONT></SPAN></DIV>
<DIV><SPAN class=285024409-08052008><FONT face=Arial size=2>Anyone know of a way
to get the rootLogger to additionally send errors to STDERR so I get to see them
without introducing new categories ?</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><FONT size=2>
<P align=left>Regards/Mit freundlichen Grüßen,</P>
<P>Tony Edwardson</P>
<P>Commerzbank AG<BR>Commerzbank Corporates & Markets<BR>ZIT-A CMA / Murex
IT Team London</P>
<P>60 Gracechurch Street</P>
<P>London EC3V 0HR</P>
<P>United Kingdom</P>
<P>+44-207-469-3628</P>
<P><A
href="mailto:tony.edwardson@commerzbank.com">tony.edwardson@commerzbank.com</A></P></FONT></FONT></DIV>
<DIV align=left><FONT face=Arial size=2>-- </FONT></DIV>
<DIV> </DIV></BODY></HTML>