https://serge-m.github.io/posts/logging-exceptions-with-traceback-in/
Logging exceptions with traceback in python