From: Tyler Riddle Date: Sat, 15 Sep 2012 02:33:08 +0000 (-0700) Subject: update log router to match new api X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=37cd25f64c4ae540983c6f6d29b4633fd6544bbd;p=scpubgit%2FSystem-Introspector.git update log router to match new api --- diff --git a/lib/System/Introspector/Logger.pm b/lib/System/Introspector/Logger.pm index 47c0833..6d9087e 100644 --- a/lib/System/Introspector/Logger.pm +++ b/lib/System/Introspector/Logger.pm @@ -8,7 +8,10 @@ use Object::Remote::LogDestination; use base qw(Object::Remote::Logging); -sub arg_router { return $_[1] if defined $_[1]; our $Router_Instance ||= Object::Remote::LogRouter->new } +sub arg_router { + return $_[1] if defined $_[1]; + our $Router_Instance ||= Object::Remote::LogRouter->new(description => __PACKAGE__); +} #should always pass in log level and execution context; #specifying a logger is used when logging during @@ -36,4 +39,5 @@ sub arg_router { return $_[1] if defined $_[1]; our $Router_Instance ||= Object: #} -1; \ No newline at end of file +1; +