> 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
[email protected]
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
log4perl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/log4perl-devel