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.

In reply to Re: Best method for opening/using a log by targetsmart
in thread Best method for opening/using a log by automandc

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.