Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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.

    Cheers,
    Darren

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2014-08-01 14:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (25 votes), past polls