From: Tyler Riddle Date: Wed, 5 Dec 2012 17:28:10 +0000 (-0800) Subject: remove dielogger and warnlogger - they just are not needed X-Git-Tag: v0.003001_01~50 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=commitdiff_plain;h=515662654de237f5d17c6d3c7169b6a3b08c18d9 remove dielogger and warnlogger - they just are not needed --- diff --git a/lib/Object/Remote/Logging/DieLogger.pm b/lib/Object/Remote/Logging/DieLogger.pm deleted file mode 100644 index a3f7aa8..0000000 --- a/lib/Object/Remote/Logging/DieLogger.pm +++ /dev/null @@ -1,13 +0,0 @@ -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; diff --git a/lib/Object/Remote/Logging/Logger.pm b/lib/Object/Remote/Logging/Logger.pm index 94bc4c7..e9f1350 100644 --- a/lib/Object/Remote/Logging/Logger.pm +++ b/lib/Object/Remote/Logging/Logger.pm @@ -175,7 +175,7 @@ Object::Remote::Logging::Logger - Format and output a log message #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', )); diff --git a/lib/Object/Remote/Logging/WarnLogger.pm b/lib/Object/Remote/Logging/WarnLogger.pm deleted file mode 100644 index f9ffc92..0000000 --- a/lib/Object/Remote/Logging/WarnLogger.pm +++ /dev/null @@ -1,12 +0,0 @@ -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;