Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Best method for opening/using a log

by targetsmart (Curate)
on Jun 17, 2009 at 07:25 UTC ( #772263=note: print w/ replies, xml ) Need Help??


in reply to Best method for opening/using a log

if there is a logging module that is heavily recommended.
I don't have a benchmark statistics or a pros and cons comparison chart to recommend the best one.
but below are the ones I use often. "I don't want to re-invent the wheel"
log::log4perl
log::agent

I have looked at some of the descriptions for the various logging modules on CPAN, and they all seem like overkill for the very basic logging I want to do.
one thing you have to understand, the process of logging will start with a small requirement , 'just to get some debug trace', but when there are too many debug statements to be logged, the log grows huge, and when your application is a long running program, then you are in deep trouble, you will need log rotation, and it goes on like this. I am sure that your requirement will grow :)
so better understand the log:: modules available on CPAN and get used to the one which suits your requirement.


Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.


Comment on Re: Best method for opening/using a log

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2014-09-16 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (19 votes), past polls