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

Re^2: Log::Log4Perl best practices

by water (Deacon)
on Jun 03, 2004 at 10:25 UTC ( #360039=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyPackage;
    use Log::Log4perl qw(:easy);
    sub method {
        DEBUG "Doing something!";
    }
    
  2. or download this
    use Log::Log4perl qw(:levels);
    Log::Log4perl->init("/home/mycode/log4perl-conf.txt");
    my $logger = Log::Log4perl->get_logger;
    $logger->level($DEBUG);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://360039]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2022-09-25 18:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (116 votes). Check out past polls.

    Notices?