On Mon, 15 Oct 2012, BENNING, Markus (ext) wrote:
Shouldn't logcroak log a stringified version and call croak on the
value you passed to it instead of calling croak on the log message?
I guess that makes sense if you're using it for throwing exceptions, but
I've never used it that way and
[mailto:m...@perlmeister.com]
Gesendet: Donnerstag, 18. Oktober 2012 09:29
An: BENNING, Markus
Cc: log4perl-devel@lists.sourceforge.net
Betreff: Re: [log4perl-devel] logcroak always stringifies when croak()ing
On Mon, 15 Oct 2012, BENNING, Markus (ext) wrote:
Shouldn't logcroak log a stringified
Hello Log4perl Developers,
I noticed that logcroak (die,confess...) always die()s with a stringified
version of what you pass to it.
Here's an example:
---
#!/usr/bin/env perl
package Status;
use Moose;
use Log::Log4perl qw(:easy);
Log::Log4perl-easy_init($ERROR);
use Carp;
use overload