We could roll our own implementation as described in the Python [docs](https://docs.python.org/3/howto/logging-cookbook.html#implementing-structured-logging), or use a library like [structlog](https://pypi.org/project/structlog/).