I used Log::Log4perl on a project and really liked it, but lost half a day trying to make it work once we moved the application into production. We never got it working on the production server. But then I learned how to bury my logger calls in comments which would be ressurrected on a machine which has Log4perl working, but will be treated as comments on machines where it does not work. And I had to write a conditional around the code which defined the logger files, choosing a log in my home directory if my user is running tests from the command line, but an apache writable log when the script runs from a browser call. I'd like to learn more about Log::Dispatch, though. Thanks for the heads up.

-- Hugh

if( $lal && $lol ) { $life++; }

In reply to Re: What module do you like for debugging CGI scripts by hesco
in thread What module do you like for debugging CGI scripts by metaperl

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.