Created
April 16, 2019 07:28
-
-
Save ahyt910/605edf7e84fc87286084ff6892f51685 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
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