Synchronise logging at handler level using standard logging infrastructure
The current logging infrastructure uses a non-standard layer to synchronise handling with a queue.
The standard library includes a QueueHandler, which allows using regular logging calls in application code. It also supports the entire logging machinery, such as logger selection and proper log level forwarding. The logging cookbook includes samples for both logging client and server.