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

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

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



Subject: can_log() method for log() method users
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; }