From: Arthur Axel 'fREW' Schmidt Date: Thu, 5 Sep 2013 23:11:32 +0000 (-0500) Subject: namespace ::Easy::Default X-Git-Tag: v0.006000~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=afbb27d502d7a961da076d56cd142d9f2c438d74;p=p5sagit%2FLog-Contextual.git namespace ::Easy::Default --- diff --git a/Changes b/Changes index b6355da..3a1a695 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,6 @@ Revision history for Log-Contextual - - Add Log::Contextual::Easy for simple LC usage (Jakob Voß) + - Add Log::Contextual::Easy::Default for simple LC usage (Jakob Voß) 0.005005 2013-08-08 - Fix minimum version of Exporter::Declare diff --git a/lib/Log/Contextual/Easy.pm b/lib/Log/Contextual/Easy/Default.pm similarity index 87% rename from lib/Log/Contextual/Easy.pm rename to lib/Log/Contextual/Easy/Default.pm index ab2e86a..3150fbe 100644 --- a/lib/Log/Contextual/Easy.pm +++ b/lib/Log/Contextual/Easy/Default.pm @@ -1,4 +1,4 @@ -package Log::Contextual::Easy; +package Log::Contextual::Easy::Default; use base 'Log::Contextual'; @@ -21,14 +21,14 @@ __END__ =head1 NAME -Log::Contextual::Easy - Import all logging methods with WarnLogger as default +Log::Contextual::Easy::Default - Import all logging methods with WarnLogger as default =head1 SYNOPSIS In your module: package My::Module; - use Log::Contextual::Easy; + use Log::Contextual::Easy::Default; log_debug { "your message" }; Dlog_trace { $_ } @vars; diff --git a/t/lib/My/Module.pm b/t/lib/My/Module.pm index b3724aa..c7c6754 100644 --- a/t/lib/My/Module.pm +++ b/t/lib/My/Module.pm @@ -1,5 +1,5 @@ package My::Module; -use Log::Contextual::Easy; +use Log::Contextual::Easy::Default; sub log { Dlog_fatal { $_ }