feature: machine-readable logging

This is a WIP branch for machine-readable logging.

Some progress has been made, but there are still a few things that need doing.