From: Arthur Axel 'fREW' Schmidt Date: Wed, 3 Mar 2010 06:14:34 +0000 (-0600) Subject: add Log::Dispatchouli example X-Git-Tag: v0.00200~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9fe4eeb37b36c3788b087c55b38b0a564d48e78d;p=p5sagit%2FLog-Contextual.git add Log::Dispatchouli example --- diff --git a/lib/Log/Contextual.pm b/lib/Log/Contextual.pm index e64c778..6224f63 100644 --- a/lib/Log/Contextual.pm +++ b/lib/Log/Contextual.pm @@ -382,12 +382,27 @@ Log::Contextual - Simple logging interface with a contextual log foo(); +Beginning with version 1.008 L also works out of the box +with C: + + use Log::Contextual qw( :log :dlog set_logger ); + use Log::Dispatchouli; + my $ld = Log::Dispatchouli->new({ + ident => 'slrtbrfst', + to_stderr => 1, + debug => 1, + }); + + set_logger $ld; + + log_debug { 'program started' }; + =head1 DESCRIPTION This module is a simple interface to extensible logging. It is bundled with a really basic logger, L, but in general you should use a real logger instead of that. For something more serious but not -overly complicated, take a look at L. +overly complicated, try L (see L for example.) =head1 OPTIONS