3 use base 'Log::Contextual';
4 use Log::Contextual::SimpleLogger;
6 my $logger = DumbLogger2->new;
8 sub arg_levels { $_[1] || [qw(lol wut zomg)] }
9 sub arg_logger { $_[1] || $logger }
12 our $Router_Instance ||= do {
13 require Log::Contextual::Router;
14 Log::Contextual::Router->new
21 sub new { bless {}, 'DumbLogger2' }
23 sub wut { $var = "[wut] $_[1]\n" }
25 sub lol { $var = "[lol] $_[1]\n" }
27 sub zomg { $var = "[zomg] $_[1]\n" }