Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: When to use logging and why?

by DaWolf (Curate)
on Nov 13, 2003 at 13:50 UTC ( [id://306791]=note: print w/replies, xml ) Need Help??


in reply to When to use logging and why?

Excellent question. I like when questions like this appear because sometimes making basic points clear helps beginners to learn and advanced programmers to remember.

Logging is a very important part of any system. I'm probably being repetitive, but I usually use it for:
  • Debugging
  • Reporting
  • Statistics usage
  • Solve client specific problems, e.g.: a client's company uses Opera as its browser and your web system is not working correctly with them because you've always tested it on IE and NN.
  • Changes in sensitive data, for an example: If a user deletes data from a database, you should log, so people don't start pointing fingers on wrong directions if something goes wrong.

my ($author_nickname, $author_email) = ("DaWolf","erabbott\@terra.com.br") if ($author_name eq "Er Galvão Abbott");

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-18 00:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found