pycopy-lib icon indicating copy to clipboard operation
pycopy-lib copied to clipboard

[logging.RotatingFileHandler] The RotatingFileHandler opens and closes file for each message

Open PolarGoose opened this issue 7 months ago • 0 comments

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.

PolarGoose avatar Jul 03 '24 07:07 PolarGoose