How set line-buffering in FileHandler of python logging module?

Viewed 25

I would like to be able to watch the messages in the log file. But it doesn't even appear until the script exits. For example, in the arguments of the open() function, you can specify a buffering=1.

0 Answers
Related