taiyo-demo / log_config.json
yuki.tsutsumi
[update]申請履歴のCSVのカラムを柔軟な形にして、動作確認までした。
31ce9a1
{
"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.change_request": {
"level": "DEBUG",
"handlers": ["consoleHandler", "fileHandler"],
"propagate": false
},
"src.forms.deviation_occurrence_report": {
"level": "DEBUG",
"handlers": ["consoleHandler", "fileHandler"],
"propagate": false
},
"src.forms.deviation_report": {
"level": "DEBUG",
"handlers": ["consoleHandler", "fileHandler"],
"propagate": false
},
"src.aws.s3": {
"level": "DEBUG",
"handlers": ["consoleHandler", "fileHandler"],
"propagate": false
},
"src.utils": {
"level": "DEBUG",
"handlers": ["consoleHandler", "fileHandler"],
"propagate": false
}
},
"root": {
"level": "DEBUG"
}
}