X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=lib%2FObject%2FRemote%2FLogging.pm;h=25831acf1fc42f372bf681d8ba93390e1746bd0f;hp=1839f22e25298625563276f7f37c811600ed2440;hb=f7ea4120db80a6feb33053e6bcb0f983b71f7394;hpb=5e2b222948b50fe1bff9e0cc8285fd6e2c930d1c diff --git a/lib/Object/Remote/Logging.pm b/lib/Object/Remote/Logging.pm index 1839f22..25831ac 100644 --- a/lib/Object/Remote/Logging.pm +++ b/lib/Object/Remote/Logging.pm @@ -2,14 +2,14 @@ package Object::Remote::Logging; use strictures 1; -use Log::Contextual::Routed qw( :log ); -use base qw(Log::Contextual::Routed); +use Log::Contextual qw( :log ); +use Object::Remote::LogRouter; -sub get_parent_router { $_[0]->SUPER::get_parent_router } +use base qw(Log::Contextual); -use Data::Dumper; +sub arg_router { return $_[1] if defined $_[1]; our $Router_Instance ||= Object::Remote::LogRouter->new } -sub init_node { my $n = `hostname`; chomp($n); $_[0]->add_child_router("[node $n]", __PACKAGE__->get_root_router) } +sub init_node { my $n = `hostname`; chomp($n); $_[0]->add_child_router("[node $n]", __PACKAGE__->arg_router) } 1;