pycopy-lib
pycopy-lib copied to clipboard
[logging.RotatingFileHandler] The RotatingFileHandler opens and closes file for each message
Bug description RotatingFileHandler logging handler opens and closes the log file for every message: line #61.
Proposal
- Open the file once in the constructor.
- Close the file only when rotation happens.