Closed balobinp closed 4 years ago
It's a bit hard to see what exact issue is being reported here. If it's "In CPython, logging module flushes underlying stream after each logging entry, while pycopy-lib module didn't", then ack, and it was fixed in pycopy-logging
0.7.2.
Dear All, I'm using MicroPython v1.12 on ESP8266. When I'm trying to write logs with logging to file, the file is empty untill I close the file.
Example:
MicroPython v1.12 on 2019-12-20; ESP module with ESP8266 Type "help()" for more information.
A simple WA here can be rewriting FileHandler class in _init.py like this:
class FileHandler(Handler): def init(self, filename, mode="a", encoding=None, delay=False): super().init()
Example with the new init.py:
MicroPython v1.12 on 2019-12-20; ESP module with ESP8266 Type "help()" for more information.
Best Regards, Pavel Balobin