Skip to content

Instantly share code, notes, and snippets.

@eagafonov
Last active March 5, 2019 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eagafonov/2523f7c7771de91a4d848588a27d19d8 to your computer and use it in GitHub Desktop.
Save eagafonov/2523f7c7771de91a4d848588a27d19d8 to your computer and use it in GitHub Desktop.
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