In order to better suite running under docker, it would be preferable to optionally allow the logs to go to stdout/stderr instead of the file, then it could be easily collected with the standard docker logging plugins.
The current logging is blocking. Theoretically this could decrease performance. One solution might be facilitating asyncio.Queue as a logging queue. Needs more inspection.
Two issues with the current logging: