Skip to content

Instantly share code, notes, and snippets.

View ahyt910's full-sized avatar
🐧

hayata.shimizu ahyt910

🐧
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"version": 1,
"disable_existing_loggers": false,
"root": {
"level": "DEBUG",
"handlers": [
"consoleHandler",
"logFileHandler"
]
},
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.")