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

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
stdlib-sig mailing list
stdlib-sig@python.org
http://mail.python.org/mailman/listinfo/stdlib-sig

Reply via email to