Skip Menu |

This queue is for tickets about the Test-Log-Log4perl CPAN distribution.

Report information
The Basics
Id: 79662
Status: resolved
Priority: 0/
Queue: Test-Log-Log4perl

People
Owner: Nobody in particular
Requestors: dmcbride [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.30
Fixed in: (no value)



Subject: Missing interceptors for $log->trace(...)
I'm trying to ensure my tracepoints are being logged properly. This doesn't quite work. To work around this for now, I have the following code in my .t file: sub Test::Log::Log4perl::trace { my $class = shift; $class- Show quoted text
>_log_at_level(trace => @_) }
sub Log::Log4perl::Logger::Interception::trace { my $level_int = Log::Log4perl::Level::to_priority('TRACE'); my $self = shift; $self- Show quoted text
>log($level_int, @_) }
sub Log::Log4perl::Logger::Interception::is_trace { 1 } It could be done much more simply in Test::Log::Log4perl.