example of warn logger
Tyler Riddle [Wed, 7 Nov 2012 05:35:34 +0000 (21:35 -0800)]
lib/Object/Remote/Logging/WarnLogger.pm [new file with mode: 0644]

diff --git a/lib/Object/Remote/Logging/WarnLogger.pm b/lib/Object/Remote/Logging/WarnLogger.pm
new file mode 100644 (file)
index 0000000..f9ffc92
--- /dev/null
@@ -0,0 +1,12 @@
+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;