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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-28152-1459738321-1748.0-0-0 [...]>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 423
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