Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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?

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.


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.

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 having an uproarious good time at the Monastery: (4)
As of 2016-10-27 05:41 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (353 votes). Check out past polls.