);
$log_destination->connect(System::Introspector::Logger->arg_router);
- #$log_destination->connect(Object::Remote::Logging->arg_router);
- #TODO attaching to this router does't work here because of
- #timming issue
- #$log_destination->connect(Object::Remote::Logging->get_router);
+ $log_destination->connect(Object::Remote::Logging->arg_router);
}
$config_file = "$storage_dir/main.conf" unless defined $config_file;
use base qw(Object::Remote::Logging);
+sub arg_router { return $_[1] if defined $_[1]; our $Router_Instance ||= Object::Remote::LogRouter->new }
+
#should always pass in log level and execution context;
#specifying a logger is used when logging during
#testing so a null output logging class can be used