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

Thomas Passin list1 at tompassin.net
Thu Jan 5 14:23:58 EST 2023


On 1/5/2023 2:18 PM, Peter J. Holzer wrote:
> On 2023-01-05 08:31:40 -0500, Thomas Passin wrote:
>> The logging system is so configurable that a user could set a different
>> destination for each level of logging.  So it seems that the O.P.'s original
>> question about why the package's developers choose stderr for all levels can
>> be answered: "They didn't".
> 
> Which is almost exactly what I wrote in
> <20230104162154.uzljittbs6xwtx6y at hjp.at> ;-)

Yup, two minds are better than one :)



More information about the Python-list mailing list