Skip Menu |

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

Report information
The Basics
Id: 113555
Status: new
Priority: 0/
Queue: Log-Handler

Owner: Nobody in particular
Requestors: ishigaki [...]

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)

Subject: can_log() method for log() method users
Download (untitled) / with headers
text/plain 423b
Hi. Log::Handler has is_* methods to see if it should log or not, but it doesn't have anything that corresponds to $logger->log($level => $message). It would be nice to have something like the following in Log::Handler::Levels : sub can_log { my ($self, $level) = @_; if (!exists $LEVELS_BY_ROUTINE{$level}) { $level = 'info'; } my $levels = $self->{level}; return $levels->{$level} ? 1 : 0; }

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to