[Python-Dev] Redirecting stdout/stderr to the logging module (was Re: Using logging in the stdlib and its unit tests)

Vinay Sajip vinay_sajip at yahoo.co.uk
Wed Dec 8 19:44:46 CET 2010

Antoine Pitrou <solipsis <at> pitrou.net> writes:

> However, there are some limitations due to the fact that logging is
> line-based while people may output arbitrary text on stderr (perhaps
> ASCII-formatted tables, who knows).

True, though the wrapper could easily buffer partial output internally to
support line-based output formats. Actually the line-based nature is a function
of the handler and/or formatter and just reflects what people tend to want most
of the time.


Vinay Sajip

More information about the Python-Dev mailing list