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?" );

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel

Reply via email to