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

Logging messages - is there a better way?

by matt.tovey (Beadle)
on Nov 18, 2005 at 12:41 UTC ( #509758=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use constant DEBUG  => 0;                # Log levels
    use constant INFO   => 1;
    ...
    }
    
    LogMsg INFO, "Starting chooser mode...";
    
  2. or download this
    use constant FILE   => 0b0001;
    use constant STDOUT => 0b0010;
    use constant GUI    => 0b0100;
    LogMsg FILE|STDOUT, "Message";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2023-09-25 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?