Log::Any::Adapter::Handler
use Log::Handler; use Log::Any::Adapter::Handler; 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!');
Log::Any adapter for Log::Handler. Log::Handler should be initialized before calling set, otherwise your log messages end up nowhere. The Log::Handler object is passed via the logger parameter.
set
Log::Any, Log::Any::Adapter, Log::Handler
To install Log::Any::Adapter::Handler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Any::Adapter::Handler
CPAN shell
perl -MCPAN -e shell install Log::Any::Adapter::Handler
For more information on module installation, please visit the detailed CPAN module installation guide.