Change the API in the existing proof of concept to have the same API as the Python `logging` module.