From: Mike S. <msc...@ao...> - 2004-02-14 17:01:36
|
Hi all, just released 0.42 to log4perl.sf.net. Here's the changes: 0.42 (02/14/2004) * (kg) added filters to XML DOMConfig and DTD * (ms) Fixed caller level to cspecs by adding one * (ms) Added init_once() and documentation * (ms) Worked around the perl bug that triggers __DIE__ handlers even if die() occurs within an eval(). So if you did BEGIN { $SIG{__DIE__} = sub { print "ouch!"; die }; } use Log::Log4perl; and Time::HiRes wasn't available, the eval { require Time::HiRes } in PatternLayout.pm triggered the __DIE__ handler. Now there's a function module_available() in L4p::Util to check if a module is installed. * (ms) Fixed %M cspec in PatternLayout in case a logging method is called within one (or more) eval {} block(s). caller(n+m) will be called repeatedly if necessary to get the next real subroutine. Anonymous subroutines will still be called __ANON__, but this can be overridden by defining local *__ANON__ = "subroutine_name"; in them explicitely (thanks, Perlmonks :). If all goes well, it'll go to CPAN in a few days. -- -- Mike Mike Schilli m...@pe... |