1

Is there a way that automatically capture all the exceptions occurred through 'logging' module and write them into a .log file?

Please do not mention the solution that 'manually' writes traceback.format_exc() into the log

1
  • To get the text of a traceback, use traceback.format_exc(). You can then write the string to a log file if you'd like. Commented Sep 14, 2018 at 15:13

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.