devgc / EventMonkey

A Windows Event Processing Utility
Apache License 2.0
46 stars 3 forks source link

DbHandler Logger issue #12

Closed devgc closed 7 years ago

devgc commented 7 years ago

Appears that logger has issues across multiple processes when wanting to roll over to a new log.

Traceback (most recent call last):
  File "C:\Python27\lib\logging\handlers.py", line 77, in emit
    self.doRollover()
  File "C:\Python27\lib\logging\handlers.py", line 142, in doRollover
    os.rename(self.baseFilename, dfn)
WindowsError: [Error 32] The process cannot access the file because it is being
used by another process
Logged from file DbHandler.py, line 126
devgc commented 7 years ago

Changed db logger from logging.handlers.RotatingFileHandler to logging.FileHandler