Last active
March 5, 2019 13:20
-
-
Save eagafonov/2523f7c7771de91a4d848588a27d19d8 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# default config | |
logging.basicConfig() | |
# LogMessage attributes for FORMAT | |
# https://docs.python.org/3.5/library/logging.html#logrecord-attributes | |
FORMAT = '%(asctime)-15s %(message)s' | |
logging.basicConfig(format=FORMAT) | |
log = logging.getLogger(__name__) | |
log.setLevel(logging.DEBUG) | |
log.debug("Hello") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment