Shut up log output from Catalyst with null log object
[catagits/Catalyst-Action-REST.git] / t / lib / Test / Catalyst / Log.pm
diff --git a/t/lib/Test/Catalyst/Log.pm b/t/lib/Test/Catalyst/Log.pm
new file mode 100644 (file)
index 0000000..ba41c73
--- /dev/null
@@ -0,0 +1,21 @@
+package Test::Catalyst::Log;
+
+use strict;
+use warnings;
+
+sub new {
+    bless {}, __PACKAGE__;
+}
+
+sub is_debug { 0 }
+sub debug { }
+sub is_info { 0 }
+sub info { }
+sub is_warn { 0 }
+sub warn : method { }
+sub is_error { 0 }
+sub error { }
+sub is_fatal { 0 }
+sub fatal { }
+
+1;