this simple example from the mastering perl book doesn't work as expected
both messages from ERROR and DEBUG prints to the error_log file
what am i missing ??
use strict;
use warnings;
use Log::Log4perl qw(:easy);
Log::Log4perl->easy_init(
{
file => ">> error_log",
level => $ERROR,
},
{
file => "STDERR",
level => $DEBUG,
}
);
ERROR( "I've got something to say!" );
DEBUG( "Hey! What's going on in there?" );
|