'CPS::Future' => 0,
'Class::C3' => 0, # required to fatpack Moo
'String::ShellQuote' => 0, # required for ssh argument manipulation
+ 'Log::Contextual' => 0.005000
},
EXE_FILES => [
'bin/object-remote-node',
sub _get_loggers {
my ($self, %metadata) = @_;
my $package = $metadata{caller_package};
- my $level = $metadata{log_level};
+ my $level = $metadata{message_level};
my $is_level = "is_$level";
my $need_clean = 0;
my @loggers;
my @loggers = $self->_get_loggers(%message_info);
my $generator = $message_info{message_sub};
my $args = $message_info{message_args};
- my $level = $message_info{log_level};
+ my $level = $message_info{message_level};
return unless @loggers > 0;
#this is the point where the user provided log message code block is executed
sub handle_log_request {
my ($self, %message_info) = @_;
- my $level = $message_info{log_level};
+ my $level = $message_info{message_level};
my $package = $message_info{caller_package};
my $need_clean = 0;
my %metadata = (
exporter => $controller_name,
caller_package => __PACKAGE__, caller_level => 0,
- log_level => 'test1', message_sub => $generator, message_args => [],
+ message_level => 'test1', message_sub => $generator, message_args => [],
);
my $router = Object::Remote::Logging::Router->new;
delete $logger->feedback_input->[2]->{message_sub};
is_deeply($logger->feedback_input, [
'test1', [ 'Generator output' ], {
- exporter => 'Test::Log::Controller', log_level => 'test1',
+ exporter => 'Test::Log::Controller', message_level => 'test1',
hostname => hostname(), pid => $$, caller_package => __PACKAGE__,
line => $linenum, method => undef, filename => __FILE__,
message_args => [], object_remote => {