NAME
L - Logging
SYNOPSIS
use L;
L::info "Hello\n";
L::warn "Something happened\n";
# Replace logger implementation
$L::logger = sub { My::Logger->new };
DESCRIPTION
L provides a minimal logging facade. By default all log levels delegate to a singleton L::Logger instance which prints to STDERR.
FUNCTIONS
log
my $logger = L::log;
Return the current logger object (created lazily).
debug
L::debug @msgs;
info
L::info @msgs;
warn
L::warn @msgs;
error
L::error @msgs;
fatal
L::fatal @msgs;
All level functions forward to the corresponding method on the logger object.