Last active
October 13, 2020 01:09
-
-
Save thanakijwanavit/a77a39a028aae9f109ab3f0364426292 to your computer and use it in GitHub Desktop.
log with debug information python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import traceback | |
| traceback.format_exc() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| logging.exception("message") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment