techcode has asked for the wisdom of the Perl Monks concerning the following question:
I've found many modules used for logging - but is there some standard/recommendation (I've checked "Writing Perl Modules for CPAN", permod/perlmodstyle ...) on how to approach logging from within the modules that you write?
I'm thinking along the lines of allowing the programmer that uses your module, to specify err/info/debug log file names (and/or file handles), and perhaps the level of logging that (s)he wants to appear. Or to disable logging - obviously :)Or if you know of any good examples of modules that have those implemented, that you can recommend.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is there some standard for logging from within the modules?
by almut (Canon) on Jun 06, 2009 at 12:09 UTC | |
by Anonymous Monk on Jun 06, 2009 at 21:53 UTC | |
|
Re: Is there some standard for logging from within the modules?
by Sixtease (Friar) on Nov 17, 2009 at 09:31 UTC |