I recommend Log::Dispatchouli whole-heartedly. It's a very smart wrapper around other logging mechanisms and allows you to log to a file, stdout, stderr, syslog, and more. I've written MooseX::Role::Loggable based on it.
It's written in a very extensible way, allowing you to add and change. The other is rjbs and he is very responsive to any changes, so if it's missing something and you can point it out, you will likely be able to get it in pretty fast. If it's a patch, it would be very fast. I don't assume it supports everything you've mentioned, for example Unicode support, but it's worth checking out. I don't use anything else myself. On Wed, Aug 3, 2011 at 9:29 PM, Meir Guttman <[email protected]> wrote: > Hi all you Mongers!**** > > Surprise, surprise, I need a logging package! Original, isn't it?**** > > Searching http://search.cpan.org for «Log» in «Modules» netted a "trifle" > set of 2,242 hits!**** > > I would therefore apply to the community's wisdom for recommendations: > which one should I use?**** > > My requirements are, from highest to lowest:**** > > - Actively used and maintained;**** > - *UNICODE* support;**** > - Automatically including a *date/time stamp* on each log entry**** > - Multiple logging *event types*, each individually enabled or disabled > (e.g. Trace, Note, Warning, Error, Fatal, etc.);**** > - Ability to set a log file to be *"piping hot"*, namely no buffering. > I need the log even in case the program dies on me.**** > - Multiple *destinations* (Screen, Note_file, Error_file, etc.), each > having their own set of enabled *event types* and *tags*;**** > - Able to log and format *arbitrarily long* messages**** > - Support of messages with *control characters* (especially Tabs)**** > - Multiple, user-defined logging *tags*, again each tag individually > enabled or disabled;**** > - Ability to *format* the log (e.g., with columns)**** > > Pleas have even negative recommendation, namely packages you know but have > shortcomings and/or do not provide any of my above requirements.**** > > Is any one of you aware of a comparison chart, listing logging > modules/packages features such as the above??? (I couldn't find one…)**** > > Thanks > Meir**** > > ** ** > > _______________________________________________ > Perl mailing list > [email protected] > http://mail.perl.org.il/mailman/listinfo/perl >
_______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
