[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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant