Log::Log4perl sending DEBUG and above to a file and WARN andabove to the screen
Edwardson, Tony
Tony.Edwardson at commerzbank.com
Thu May 8 05:43:44 PDT 2008
I tried that but couldn't get it to work - Robbie has solved my problem
for me
Add a new appender to Screen and set the threshold for the appender to
WARN
Cheers
Tony
--
-----Original Message-----
From: miltonkeynes-pm-bounces+tony.edwardson=commerzbank.com at pm.org
[mailto:miltonkeynes-pm-bounces+tony.edwardson=commerzbank.com at pm.org]
On Behalf Of Tom Hukins
Sent: Thursday, May 08, 2008 12:22 PM
To: miltonkeynes-pm at pm.org
Subject: Re: Log::Log4perl sending DEBUG and above to a file and WARN
andabove to the screen
On Thu, May 08, 2008 at 11:50:04AM +0200, Edwardson, Tony wrote:
> 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 ?
Why do you want to use the rootLogger? I would create an additional
logger that ignores anything below the ERROR level and uses the Screen
appender to log to STDERR.
Tom
_______________________________________________
MiltonKeynes-pm mailing list
MiltonKeynes-pm at pm.org
http://mail.pm.org/mailman/listinfo/miltonkeynes-pm
More information about the MiltonKeynes-pm
mailing list