Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Log::Log4Perl best practices

by water (Deacon)
on May 31, 2004 at 22:06 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 17:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found