|
From: Mike S. <m...@pe...> - 2004-10-15 17:46:57
|
On Fri, 15 Oct 2004 Pet...@ub... wrote:
> I would like to remove the final entry of 'arrrrhhhhhhhh' from my output, it was produced with a $logger->logdie("arrrrhhhhhhhh") or if i use a $logger->logwarn("arrrrhhhhhhhh");
>
> bash-2.05b$ perl eqtas_scheduler.pl
> [2004/10/15 17:24:44] [INFO] [MESSAGE:Commencing Command Line Batch run, details to follow..] [SENDER:scheduler.pl] [LINE:62]
> [2004/10/15 17:24:44] [FATAL] [MESSAGE:arrrrhhhhhhhh] [SENDER:scheduler.pl] [LINE:63]
>
> arrrrhhhhhhhh at scheduler.pl line 63
Instead of $logger->logdie("xxx"), if you call
$logger->fatal("xxx");
exit 0;
then you just get the message logged, no message from die() on STDERR. Maybe
we should add
$logger->logexit("xxx");
to Log::Log4perl which logs a FATAL message and then just exits?
-- Mike
Mike Schilli
m...@pe...
|