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

2008-06-07 Thread Mike Schilli
On Thu, 5 Jun 2008, Kristis Makris wrote: > Would it make sense to have another interface that allows one to > specify the exit value ? Doing the following e.g. > $Log::Log4perl::LOGEXIT_CODE = 113; > $logger->logdie( "my message" ); > Is still two lines of code instead of one. I was hoping for th

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.