Log::Log4perl::FAQ

Log::Log4perl::FAQ is a Perl module that contains Frequently Asked Questions (FAQ) on Log::Log4perl.
Download

Log::Log4perl::FAQ Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Mike Schilli
  • Publisher web site:
  • http://search.cpan.org/~mschilli/X10-Home-0.03/Home.pm

Log::Log4perl::FAQ Tags


Log::Log4perl::FAQ Description

Log::Log4perl::FAQ is a Perl module that contains Frequently Asked Questions (FAQ) on Log::Log4perl. Log::Log4perl::FAQ is a Perl module that contains Frequently Asked Questions (FAQ) on Log::Log4perl.This FAQ shows a wide variety of commonly encountered logging tasks and how to solve them in the most elegant way with Log::Log4perl. Most of the time, this will be just a matter of smartly configuring your Log::Log4perl configuration files.Why use Log::Log4perl instead of any other logging module on CPAN?That's a good question. There's dozens of logging modules on CPAN. When it comes to logging, people typically think: "Aha. Writing out debug and error messages. Debug is lower than error. Easy. I'm gonna write my own." Writing a logging module is like a rite of passage for every Perl programmer, just like writing your own templating system.Of course, after getting the basics right, features need to be added. You'd like to write a timestamp with every message. Then timestamps with microseconds. Then messages need to be written to both the screen and a log file.And, as your application grows in size you might wonder: Why doesn't my logging system scale along with it? You would like to switch on logging in selected parts of the application, and not all across the board, because this kills performance. This is when people turn to Log::Log4perl, because it handles all of that.Avoid this costly switch.Use Log::Log4perl right from the start. Log::Log4perl's :easy mode supports easy logging in simple scripts: use Log::Log4perl qw(:easy); Log::Log4perl->easy_init($DEBUG); DEBUG "A low-level message"; ERROR "Won't make it until level gets increased to ERROR";And when your application inevitably grows, your logging system grows with it without you having to change any code.Please, don't re-invent logging. Log::Log4perl is here, it's easy to use, it scales, and covers many areas you haven't thought of yet, but will enter soon. Requirements: · Perl


Log::Log4perl::FAQ Related Software