+++ /dev/null
-package Object::Remote::Logging::DieLogger;
-
-use Moo;
-
-extends 'Object::Remote::Logging::Logger';
-
-has format => ( is => 'ro', required => 1, default => sub { '%s at %f line %i' } );
-has max_level => ( is => 'ro', required => 1, default => sub { 'fatal' } );
-has min_level => ( is => 'ro', required => 1, default => sub { 'fatal' } );
-
-sub output { die $_[1] };
-
-1;
#router will hold this logger forever
#and send it all log messages
- router->connect(Object::Remote::Logging::WarnLogger->new(
+ router->connect(Object::Remote::Logging::Logger->new(
level_names => arg_levels, format => '%s at %f line %i, log level: %l'
min_level => 'warn', max_level => 'error',
));
+++ /dev/null
-package Object::Remote::Logging::WarnLogger;
-
-use Moo;
-
-extends 'Object::Remote::Logging::Logger';
-
-has format => ( is => 'ro', required => 1, default => sub { '%s at %f line %i, log level: %l' } );
-has min_level => ( is => 'ro', required => 1, default => sub { 'warn' } );
-
-sub output { warn $_[1] };
-
-1;