From: Mike S. <m...@pe...> - 2014-12-24 17:35:41
|
> I'm trying to log all messages with levels DEBUG through FATAL to > logs/ssb.log, and all messages with levels INFO through FATAL to > logs/user.log Actually, your script works for me: $ cat logs/* 2014/12/24 09:30:23 main.main::(40) DEBUG debug 2014/12/24 09:30:23 main.main::(41) INFO info 2014/12/24 09:30:23 main.main::(42) ERROR error 2014/12/24 09:30:23 main.main::(43) FATAL fatal INFO - info ERROR - error FATAL - fatal when I add my $log = get_logger( "ssb" ); $log->debug( "debug" ); $log->info( "info" ); $log->error( "error" ); $log->fatal( "fatal" ); But I had to first fix the strange encoding: perl -p -i -e 's/\xc2\xa0/ /g' scriptname Is this Windows or why are some spaces in your configuration encoded as "c2a0"? -- Mike Mike Schilli m...@pe... |