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");