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 @msg;
info
L::info @msg;
warn
L::warn @msg;
error
L::error @msg;
fatal
L::fatal @msg;
All level functions forward to the corresponding method on the logger object.