sub assert ($;$) { unless($_[0]) { require Carp; Carp::confess( _fail_msg($_[1]) ); } return undef; }
If you don't use Carp::confess elsewhere, you could override it to call Log::Log4perl.
In reply to Re: Assertions and Logging
by tall_man
in thread Assertions and Logging
by nop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |