ChangeLog for Log-Contextual
+0.00200 2010-03-03
+ - add example for Log::Dispatchouli since it works nicely now
- make Log::Log4perl work out of the box
- Added WarnLogger for libraries
- Warn if set_logger is called more than once
-# add example for Log::Dispatchouli
-
package Log::Contextual;
use strict;
use warnings;
-our $VERSION = '0.00101';
+our $VERSION = '0.00200';
require Exporter;
use Data::Dumper::Concise;
levels => [qw{trace debug info warn error fatal}],
coderef => sub { $response = $_[0] },
});
-set_logger($l2);
+{
+ local $SIG{__WARN__} = sub {}; # do this just to hide warning for tests
+ set_logger($l2);
+}
log_trace { 'trace' };
is($response, "[trace] trace\n", 'trace renders correctly');
log_debug { 'debug' };