Currently logging works by initializing the logger at the start of a function and then tearing it down at the end (also, the logger is closed if an error is raised).
This is okay-ish but it requires remembering to set up and close down logging for all new public functions, which is very easy to forget and is not properly documented anywhere (another reason for #82).
It would be better to have a decorator to handle this, or some other solution that requires having to handle logging manually for each new method.
Currently logging works by initializing the logger at the start of a function and then tearing it down at the end (also, the logger is closed if an error is raised).
This is okay-ish but it requires remembering to set up and close down logging for all new public functions, which is very easy to forget and is not properly documented anywhere (another reason for #82).
It would be better to have a decorator to handle this, or some other solution that requires having to handle logging manually for each new method.