Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

RFC: A simple and badly-named logging module

by radiantmatrix (Parson)
on Feb 17, 2006 at 18:15 UTC ( #531030=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    info  'This is an info log item'.
    debug "the value of this variable is: '$this'"
    
  2. or download this
    # log die, warn, info, and debug events to mylog.log, but don't
    # show debug events on the console.
    use Log ( file=>'mylog.log', warn => 2, info => 2, debug => 1 );
    
  3. or download this
    package Log;
    
    ...
    1;    # modules must return a true value.
    
    __END__
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2020-02-28 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (125 votes). Check out past polls.

    Notices?