Skip to main content

Logging in Perl

For months now, my learning curve of Perl had completely flattened, in spite of the infinite richness of the language and my low knowledge-level of it. Finally, the problem of efficiently monitoring my KeepInTouch and SellerBay production usage apps are addressed in Log4Perl, seems to offer the next skill-upgrade opportunity in Perl.

Log4Perl is an easy, sophisticated, and everything-in-between logging API to Perl applications. Among it's capabilities:
  • log to a log-file of your choice, or to STDOUT, or to STDERR
  • dispatch emails for certain application runtime conditions
  • configuration in an external conf-file, or inline in code
  • ... much more ...
I'm mainly keen to monitor scripts run by my cronjobs, whose performance I'm unable to track on a daily basis otherwise.

Resources

Comments

Ashant said…
Having tried Log4Perl a bit in a CLI script as well as a web-script, this method is showing potential to improve the quality level of the whole package.

This is a direct result of the increased visibility logging offers into the runtime performance of the script under typical usage conditions.