Code Comments
Programming Forum and web based access to our favorite programming groups.The following module was proposed for inclusion in the Module List: modid: Log::Fine DSLIP: cdpOb description: Yet another logging framework userid: CFUHRMAN (Chris Fuhrman) chapterid: 3 (Development_Support) communities: similar: Log::Agent Log::Dispatch rationale: The goal behind Log::Fine is to provide fine-grained logging via one or more "handles" (I'm debating on whether to call these "channels" instead). Log::Fine is broken into 3 main components: 1) Log::Fine::Logger This method is responsible for logging and dispatch. It provides the "log" method. 2) Log::Fine::Handle A handle is an output channel. Currently supported are output to either STDERR or STDOUT, Files, Syslog, and Timestamped files. Note I'm debating on whether or not to call these "channels" instead of "handles" 3) Formatter A formatter formats the output string. It's designed to be easily sub-classed for custom logging. enteredby: CFUHRMAN (Chris Fuhrman) enteredon: Fri May 9 17:22:42 2008 GMT The resulting entry would be: Log:: ::Fine cdpOb Yet another logging framework CFUHRMA N Thanks for registering, -- The PAUSE PS: The following links are only valid for module list maintainers: Registration form with editing capabilities: https://pause.perl.org/pause/authen...d_mod_preview=1 Immediate (one click) registration: https://pause.perl.org/pause/authen..._mod_insertit=1
Post Follow-up to this message[[ This message was both posted and mailed: see the "To," "Cc," and "Newsgroups" headers for details. ]] In article <200805091722.m49HMgM1003395@pause.perl.org>, Perl Authors Upload Server <upload@pause.perl.org> wrote: > The following module was proposed for inclusion in the Module List: > > modid: Log::Fine > DSLIP: cdpOb > description: Yet another logging framework > userid: CFUHRMAN (Chris Fuhrman) > chapterid: 3 (Development_Support) > communities: > > similar: > Log::Agent Log::Dispatch > > rationale: > > The goal behind Log::Fine is to provide fine-grained logging via > one or more "handles" This sounds a lot like Log::Log4perl and Log::Dispatch. Is there some feature that sets your module apart from the others? Perhaps the distinguishing feature could go in the name. :) -- brian d foy (one of many PAUSE admins), http://pause.perl.org archives at http://www.xray.mpe.mpg.de/mailing-lists/modules please send all messages back to modules@perl.org
Post Follow-up to this messageHowdy, On May 10, 2008, at 1:58 AM, brian d foy wrote: > [[ This message was both posted and mailed: see > the "To," "Cc," and "Newsgroups" headers for details. ]] > > > This sounds a lot like Log::Log4perl and Log::Dispatch. Is there some > feature that sets your module apart from the others? Perhaps the > distinguishing feature could go in the name. :) > There are a few features that I can think of: 1) The ability to specify the log level via a bit mask. This allows for complex and fine-grained logging via multiple handles. 2) Formatting of log output is completely customizable. You specify a formatting object that tells Log::Fine how to print the message (no patterns or weird callbacks). 3) In the event you wish to output information from caller(), you have the option of setting a skip level so that you can log the correct invoking Package/Method/Subroutine. This allows a developer to wrap calls to log while still producing the correct invoking method. 4) No bloody config file. ;) I'm open to suggestions as to a proper name. /Chris. > -- > brian d foy (one of many PAUSE admins), http://pause.perl.org > archives at http://www.xray.mpe.mpg.de/mailing-lists/modules > please send all messages back to modules@perl.org -- Chris Fuhrman cfuhrman@panix.com
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.