Log::Any adapter for Log::Handler
Perl
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Log/Any/Adapter
t
.gitignore
.proverc
Build.PL
Changes
LICENSE
META.json
README.md
cpanfile
minil.toml

README.md

NAME

Log::Any::Adapter::Handler

SYNOPSIS

use Log::Handler;
use Log::Any::Adapter;

my $lh = Log::Handler->new(screen => {log_to => 'STDOUT'});
Log::Any::Adapter->set('Handler', logger => $lh);
my $log = Log::Any->get_logger();

$log->warn('aaargh!');

DESCRIPTION

This is a Log::Any adapter for Log::Handler. Log::Handler should be initialized before calling set, otherwise your log messages will end up nowhere. The Log::Handler object is passed via the logger parameter.

Log levels are translated 1:1. Log::Handler's special logging methods are not implemented.

SEE ALSO

Log::Any, Log::Any::Adapter, Log::Handler

AUTHOR

Gelu Lupaş gvl@cpan.org

COPYRIGHT AND LICENSE

Copyright (c) 2013-2014 the Log::Any::Adapter::Handler "AUTHOR" as listed above.

This is free software, licensed under:

The MIT License (MIT)