Created
July 6, 2022 14:03
-
-
Save soerface/3645ae856343b4a130e4809c1ae31058 to your computer and use it in GitHub Desktop.
logging.basicConfig
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.basicConfig( | |
format="%(asctime)s %(levelname)s: %(message)s", | |
level=logging.getLevelName("INFO"), | |
) | |
logger = logging.getLogger() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment