Ok,
This role underneath is a Log::Any thingy as you know, and I want to say 
that Log::Any has a very nice feature that I use often: being able to dump 
anything with a single "printf" like method, extremey useful for debugging 
and/or showing everything, e.g.:

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

my $anything = {hash => [ { again => "x" }, "y" ]};
$log->warnf("=======> Dumped: %s", $anything);
'
janv. 22 06:14:15 [WARNING] =======> Dumped: {hash => [{again => "x"},"y"]}

JD.

Le jeudi 22 janvier 2015 03:11:19 UTC+1, Ron Savage a écrit :
>
> Ah. It has an adapter for Log::Handler. Let me think about it.
>

-- 
You received this message because you are subscribed to the Google Groups 
"marpa parser" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to