更新一些配置与配置相关的代码
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user