<!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>&nbsp;&nbsp;&nbsp; 
my %settings = (<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
'log4perl.rootLogger'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
=&gt; 'DEBUG, LOGFILE',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
'log4perl.category.rrdtool'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
=&gt; 'WARN, LOGFILE',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
'log4perl.category.RRDTool.OO'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; 'WARN, 
LOGFILE',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
'log4perl.appender.LOGFILE'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
=&gt; 
'Log::Log4perl::Appender::File',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
'log4perl.appender.LOGFILE.filename' =&gt; 
$filename,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
'log4perl.appender.LOGFILE.layout'&nbsp;&nbsp; =&gt; 
'PatternLayout',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
'log4perl.appender.LOGFILE.layout.ConversionPattern' 
=&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '[%d] %-20F{1} 
%-5p - %-6P - %m%n',<BR>&nbsp;&nbsp;&nbsp; );<BR>&nbsp;&nbsp;&nbsp; 
Log::Log4perl-&gt;init( \%settings );<BR>&nbsp;</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>&nbsp;</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 &amp; 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>&nbsp;</DIV></BODY></HTML>