warriors has asked for the wisdom of the Perl Monks concerning the following question:
The code should print the ERROR message in the error_log file and both messages on the screen.#!/usr/bin/perl # log4perl-easy3.pl 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?" );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mastering Log::Log4perl
by CountZero (Bishop) on Oct 25, 2009 at 22:07 UTC | |
|
Re: Mastering Log::Log4perl
by Anonymous Monk on Oct 25, 2009 at 21:23 UTC | |
by Anonymous Monk on Oct 26, 2009 at 13:31 UTC | |
|
Re: Mastering Log::Log4perl
by Anonymous Monk on Oct 26, 2009 at 07:19 UTC |