更新一些配置与配置相关的代码

This commit is contained in:
zhouchengrong
2024-03-18 17:57:01 +08:00
parent 8383234ba1
commit f84b8aaba1
6 changed files with 71 additions and 12 deletions

View File

@@ -1,3 +1,5 @@
from app.core.config import LOGSPATH
LOGGER_CONFIG_DICT = {
"version": 1,
"disable_existing_loggers": False,
@@ -15,7 +17,7 @@ LOGGER_CONFIG_DICT = {
"class": "logging.handlers.RotatingFileHandler",
"level": "INFO",
"formatter": "simple",
"filename": "app/logs/info.log",
"filename": LOGSPATH,
"maxBytes": 10485760,
"backupCount": 50,
"encoding": "utf8",
@@ -24,7 +26,7 @@ LOGGER_CONFIG_DICT = {
"class": "logging.handlers.RotatingFileHandler",
"level": "ERROR",
"formatter": "simple",
"filename": "app/logs/errors.log",
"filename": LOGSPATH,
"maxBytes": 10485760,
"backupCount": 20,
"encoding": "utf8",
@@ -33,7 +35,7 @@ LOGGER_CONFIG_DICT = {
"class": "logging.handlers.RotatingFileHandler",
"level": "DEBUG",
"formatter": "simple",
"filename": "app/logs/debug.log",
"filename": LOGSPATH,
"maxBytes": 10485760,
"backupCount": 50,
"encoding": "utf8",