taiyo-demo / log_config.json
yuki.tsutsumi
ロガーを追加。
43c6dfc
raw
history blame
1.12 kB
{
"version": 1,
"disable_existing_loggers": false,
"formatters": {
"simple": {
"format": "%(asctime)s %(name)s:%(lineno)s %(funcName)s [%(levelname)s]: %(message)s"
}
},
"handlers": {
"consoleHandler": {
"class": "logging.StreamHandler",
"level": "DEBUG",
"formatter": "simple",
"stream": "ext://sys.stdout"
},
"fileHandler": {
"class": "logging.handlers.TimedRotatingFileHandler",
"level": "INFO",
"formatter": "simple",
"filename": "logs/application.log",
"when": "MIDNIGHT",
"backupCount": 30,
"encoding": "utf-8"
}
},
"loggers": {
"src.forms": {
"level": "DEBUG",
"handlers": ["consoleHandler", "fileHandler"],
"propagate": false
},
"src.utils": {
"level": "DEBUG",
"handlers": ["consoleHandler", "fileHandler"],
"propagate": false
}
},
"root": {
"level": "DEBUG"
}
}