Last active
January 20, 2022 18:35
-
-
Save thiborose/d5201d9d43182a2f34361d0bf75ec603 to your computer and use it in GitHub Desktop.
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
| # set up logging | |
| logging_level = logging.DEBUG if args.debug else logging.INFO | |
| logging.basicConfig( | |
| level=logging_level, | |
| format="[%(asctime)s:%(module)s:%(levelname)s] %(message)s", | |
| handlers=[ | |
| logging.FileHandler("logs.txt"), | |
| logging.StreamHandler(sys.stdout) | |
| ] | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment