ChangeLog for Log-Contextual
+ - Use Log::Log4perl 1.29 to clean up caller stuff
+
0.00300 2010-06-03
- Add -package_logger import option
log_fatal logS_fatal
));
+eval {
+ require Log::Log4perl;
+ die if $Log::Log4perl::VERSION < 1.29;
+ Log::Log4perl->wrapper_register(__PACKAGE__)
+};
+
our @EXPORT_OK = (
@dlog, @log,
qw( set_logger with_logger )
my $code = shift;
my @values = @_;
- local $Log::Log4perl::caller_depth = ($Log::Log4perl::caller_depth || 0 ) + 2;
$logger->$level($code->(@_))
if $logger->${\"is_$level"};
@values
my $code = shift;
my $value = shift;
- local $Log::Log4perl::caller_depth = ($Log::Log4perl::caller_depth || 0 ) + 2;
$logger->$level($code->($value))
if $logger->${\"is_$level"};
$value