Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Log::Log4Perl best practices

by water (Deacon)
on May 31, 2004 at 22:06 UTC ( #357854=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Log::Log4perl qw(:levels);
    Log::Log4perl::init('/home/code/log4perl-conf.txt');
    my $logger = Log::Log4perl->get_logger($0);
    $SIG{__DIE__} = sub {$Log::Log4perl::caller_depth++; $logger->fatal('f
    +atal: ', @_); die @_;};
    
  2. or download this
    use Log::Log4perl qw(:levels);
    my $logger = Log::Log4perl->get_logger(__PACKAGE__);
    $logger->level($DEBUG);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://357854]
Approved by adrianh
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2019-10-14 12:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?