I have an application which has to run a number of simulation runs. I want to setup a logging mechanisme where all logrecords are logged in a general.log, and all logs for a
You need to call .close() on the filehandler.
.close()
When your Run class completes, call:
Run
handlers = self.log.handlers[:] for handler in handlers: handler.close() self.log.removeHandler(handler)