This PR removes the StreamHandler and adds a MemoryHandler with the same target file structure. By storing some of the logging messages in memory and writing them to file all at once, the runtimes see minor speedups. To ensure everything gets written correctly, the WombatEnvironment.run() method catches all errors, flushes the logs, then re-raises the error.
This PR removes the
StreamHandler
and adds aMemoryHandler
with the same target file structure. By storing some of the logging messages in memory and writing them to file all at once, the runtimes see minor speedups. To ensure everything gets written correctly, theWombatEnvironment.run()
method catches all errors, flushes the logs, then re-raises the error.