Skip to content

Instantly share code, notes, and snippets.

@blade2005
Created June 21, 2019 15:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blade2005/f4ca131dde6e8c043cded3be19044b97 to your computer and use it in GitHub Desktop.
Save blade2005/f4ca131dde6e8c043cded3be19044b97 to your computer and use it in GitHub Desktop.
import logging
FORMAT = '%(asctime)-15s %(levelname)s %(module)s.%(funcName)s %(message)s'
DATEFMT = "%Y-%m-%d %H:%M:%S"
logging.basicConfig(level=logging.INFO, format=FORMAT, datefmt=DATEFMT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment