Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 wandering the Monastery: (11)
As of 2014-09-30 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (370 votes), past polls