What should go to stdout/stderr and why Python logging write everything to stderr?

Thomas Passin list1 at tompassin.net
Wed Jan 4 12:32:40 EST 2023


On 1/3/2023 10:35 AM, c.buhtz at posteo.jp wrote:
> The logging module write everything to stderr no matter which logging
> level is used.

The OP wrote this, but it's not so by default.  There is a HOW-TO page 
that explains this and how to get the logging package to log everything 
to a file, along with many other useful bits of information -

https://docs.python.org/3/howto/logging.html



More information about the Python-list mailing list