As others have already suggested, you can use log4perl.
The next thing, which is probably more important, is what to log. Base on my experiences, those are the three most important types of information that will definitly help you to debug your code, and to understand potential problems:
For multi-threading programs, have a thread id attached to each thread, so logs are lucid.
In reply to Re: Logging best practices
by pg
in thread Logging best practices
by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |