Thanks for catching the cut-n-paste typos. Yes, I see the last root logger setup prevails. However, I still don't see from reading the docs how to have a suite of programs sharing a common debug log, having their own info log, and sharing a common error log. And sure, logs can and should grab messages from higher levels -- eg debug log can and should log infos, warns, errors, fatals, etc.
Why are we trying to do this? When debugging, we set
$logger->level($DEBUG); in a script, or in a module, or both, as needed. This produces lots of output. Once things are working, we raise the level to $INFO. We log major program events at the info level ("Now initializing...", "Now working...", "Now complete."). We log fatal errors, and program startups, in the error log. (Think the apache log, which captures major events like errors and restarts). To see if all is well, scan the error log. To get details on a script, scan the script-specific info log. To debug, turn on the debugging level and stare and the debug log. (The debug log is common because the bug tracking might cross several modules.)
So, trying to do this and not understanding the docs:
how may a suite of programs and mods share a common debug log, each program have their own info log, and all share a common error log?
Thanks
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.