Re: [log4perl-devel] [unclassified] Re: log and exit in one function call. How ?

2008-06-07 Thread Kristis Makris
On Sat, 2008-06-07 at 13:18 -0700, Mike Schilli wrote: > If you'd rather like a two-argument function that takes a message and an > error code, you can write a wrapper library around Log4perl that does > exactly that, just increase $Log::Log4perl::caller_depth: > > http://log4perl.sourceforge.

Re: [log4perl-devel] [unclassified] Re: log and exit in one function call. How ?

2008-06-05 Thread Kristis Makris
onversionPattern to include the error code, and also exit with that error code. On Wed, 2008-06-04 at 23:40 -0700, Mike Schilli wrote: > On Tue, 3 Jun 2008, Kristis Makris wrote: > > > How can I do that ? I've tried logdie, logwarn, error_warn, logcroak, > > logconfess wit

[log4perl-devel] log and exit in one function call. How ?

2008-06-03 Thread Kristis Makris
Hello, I'm trying to use log4perl to log a message and immediately die. I got the impression that something like: $logger->error_die( "my error message" ); should be enough, but instead calling this function reports the error message twice. I essentially need log4perl to do something like: $lo

[log4perl-devel] Different log layout per level ?

2008-02-09 Thread Kristis Makris
Hello, I recently started toying with log4perl, and incorporated it in an application. I need the capability to define a log layout for WARN messages that is a lot more user-friendly/readable than the others. After reading the documentation at: http://log4perl.sourceforge.net/releases/Log-Log4pe