2020-08-12 00:36:09 +00:00
|
|
|
{
|
|
|
|
"version": 1,
|
|
|
|
"disable_existing_loggers": false,
|
|
|
|
"formatters": {
|
|
|
|
"commander": {
|
|
|
|
"format": "%(asctime)s - [Commander] - %(levelname)-8s - %(name)s - %(message)s"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"handlers": {
|
|
|
|
"console": {
|
|
|
|
"class": "logging.StreamHandler",
|
|
|
|
"formatter": "commander",
|
|
|
|
"stream": "ext://sys.stdout"
|
|
|
|
},
|
|
|
|
|
|
|
|
"main_file_handler": {
|
|
|
|
"class": "logging.handlers.RotatingFileHandler",
|
|
|
|
"formatter": "commander",
|
2020-08-13 01:33:36 +00:00
|
|
|
"filename": "logs/commander.log",
|
2020-08-12 00:36:09 +00:00
|
|
|
"maxBytes": 5242880,
|
|
|
|
"backupCount": 20,
|
|
|
|
"encoding": "utf8"
|
|
|
|
},
|
|
|
|
"session_file_handler": {
|
|
|
|
"class": "logging.handlers.RotatingFileHandler",
|
|
|
|
"formatter": "commander",
|
2020-08-13 01:33:36 +00:00
|
|
|
"filename": "logs/session.log",
|
2020-08-12 00:36:09 +00:00
|
|
|
"backupCount": 0,
|
|
|
|
"encoding": "utf8"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"loggers": {
|
|
|
|
"": {
|
|
|
|
"level": "INFO",
|
|
|
|
"handlers": ["main_file_handler", "session_file_handler"],
|
|
|
|
"propagate": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|