Logging (Python)
Resources
- This blog post describes a very neat way for logging in Python with decorators - can be modified a bit to log returns of functions of returns.
- Another option seems to be the autologging package, however I am not sure if we can nicely log specific function calls. By this I mean instead of having all the large tensors etc. being logged, we may want to just log functions of them e.g. a function that returns how many of the weights are NaN etc.
- structlog seems to be a good enhancement over native logging, and if used well could be treated as a wrapper over it.