[stdlib-sig] logging
Barry Warsaw
barry at python.org
Fri Sep 18 13:57:03 CEST 2009
On Sep 18, 2009, at 4:43 AM, Vinay Sajip wrote:
> Thanks. If you had the time to write your ideal, "pretty" API -
> hypothetically,
> say, to wrap logging so you wouldn't use the underlying power - what
> would this
> API look like? I'm open to ideas from all of you.
So, I'm a big fan of the logging package and thank Vinay for his work
on it over the years. It was quite a joy to chuck all the hacky
Mailman 2 logging crap in favor of the standard logging package for MM3.
The one thing I (very) occasionally want is to ask a logger for a file-
like object suitable for print. There are some situations where I
have a 3rd party API that requires a file-like object to output to,
but I really want that output to go to a log. I'm pretty sure I've
wrangled it out of a file-based logger, but it would be nice have this
as an official API. Maybe it's there and I've just missed it though.
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 832 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/stdlib-sig/attachments/20090918/f093929b/attachment.pgp>
More information about the stdlib-sig
mailing list