[Python-Dev] Proposed change to logging

Guido van Rossum guido at python.org
Wed Aug 25 17:34:40 CEST 2004


> I'm really more interested in providing a compatible file-like (i.e.
> write()) interface to logging objects.  There are a lot of APIs in the
> world that are written to accept file-like objects and it would be nice
> to be able to pass logging objects directly to them, without having to
> first make a detour with StringIO.  I don't really care too much about
> the actual implementation of it all.

Hm.  So would you turn each separate line into a log message?  When
you write a partial line, it needs to be buffered somewhere until you
see the newline.

--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list