Skip to content

Instantly share code, notes, and snippets.

@ahyt910
Created April 16, 2019 07:28
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 ahyt910/605edf7e84fc87286084ff6892f51685 to your computer and use it in GitHub Desktop.
Save ahyt910/605edf7e84fc87286084ff6892f51685 to your computer and use it in GitHub Desktop.
from logging import config, getLogger
from json import load
with open("./config/logging.json", "r", encoding="utf-8") as f:
config.dictConfig(load(f))
logger = getLogger(__name__)
logger.info("This is a info message.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment