Добавлен средний слой с логированием данных
This commit is contained in:
@@ -17,6 +17,11 @@ from net.xeaf.rack.utils.settings.logger import LogDebugFilter
|
||||
#
|
||||
LOGGER_NAME = Environment.get_str("LOGGER_NAME", "rack")
|
||||
|
||||
#
|
||||
# Ключи полей, которые необходимо скрывать в журнале
|
||||
#
|
||||
LOGGER_SENSITIVE_KEYS = Environment.get_str_as_list("LOGGER_SENSITIVE_KEYS", "")
|
||||
|
||||
#
|
||||
# Уровень журналирования
|
||||
#
|
||||
@@ -61,7 +66,7 @@ LOGGING = {
|
||||
#
|
||||
"main_file": {
|
||||
"level": "INFO" if LOG_LEVEL == "DEBUG" else LOG_LEVEL,
|
||||
"class": "logging.handlers.RotatingFileHandler",
|
||||
"class": "concurrent_log_handler.ConcurrentRotatingFileHandler",
|
||||
"filename": LOG_FILE,
|
||||
"maxBytes": 1024 * 1024 * 10,
|
||||
"backupCount": 5,
|
||||
@@ -70,11 +75,11 @@ LOGGING = {
|
||||
},
|
||||
|
||||
#
|
||||
# Отладка
|
||||
# Лог отладки
|
||||
#
|
||||
"debug_file": {
|
||||
"level": "DEBUG",
|
||||
"class": "logging.handlers.RotatingFileHandler",
|
||||
"class": "concurrent_log_handler.ConcurrentRotatingFileHandler",
|
||||
"filename": DEBUG_LOG_FILE,
|
||||
"maxBytes": 1024 * 1024 * 10,
|
||||
"backupCount": 5,
|
||||
|
||||
Reference in New Issue
Block a user