In https://calmcode.io/logging/files.html videos 4 and 5 I think it would be helpful to mention that there is also a logger.exception function which will automatically set the level to error and include the trace back. It is slightly cleaner and you don’t need to catch any specific exception to make it work.
In https://calmcode.io/logging/files.html videos 4 and 5 I think it would be helpful to mention that there is also a logger.exception function which will automatically set the level to error and include the trace back. It is slightly cleaner and you don’t need to catch any specific exception to make it work.