http://www.perlmonks.org?node_id=848020

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

There are many modules in CPAN providing some logging framework. The most advanced and widely used seem to be: Log::Dispatch, Log::Handler and Log::Log4perl.

Any advice on which one to use and in which cases?

Replies are listed 'Best First'.
Re: Which logging module to use?
by Anonymous Monk on Jul 05, 2010 at 07:49 UTC
    Log4perl for all cases , its the most comprehensive and adaptable, and comes with a easy mode
Re: Which logging module to use?
by McDarren (Abbot) on Jul 05, 2010 at 16:20 UTC
    yes, Log::Log4perl is the way to go.

    For a long time, I used Log::Trivial, simply because the first time I looked for a logging module it seemed to be the easiest to use (and I'm fundamentally lazy). Recently I switched to Log::Log4perl and my only regret is that I didn't use it right from the very start. There was (for me at least - YMMV) a very brief learning curve, but it was worth it.

    Cheers,
    Darren

Re: Which logging module to use?
by markov (Scribe) on Jul 05, 2010 at 12:01 UTC
    Log::Report is far more powerful, but needs a little study. It moves the log-management from the modules into control of the main application, handles exceptions and translations.