Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Which logging module to use?

by Anonymous Monk
on Jul 05, 2010 at 07:40 UTC ( #848020=perlquestion: print w/ replies, xml ) Need Help??
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?

Comment on Which logging module to use?
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 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.
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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://848020]
Approved by ikegami
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2015-07-04 10:22 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (59 votes), past polls