This modifies the configuration of structured logging to be usable from the standard Python logging configuration. This also separates the formatting of logs from the transport allowing JSON logs to files or standard logs to sockets.
This should (theoretically) allow for using the TCP code with a different output type and make it easier to use the JSON code with files / console.