From 3775ef6d7abdbed55c6364ad4ba83247d2dae42d Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 5 Nov 2023 23:59:59 +0800 Subject: [PATCH] reset level map --- lib_not_dr/logger/formatter/__init__.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib_not_dr/logger/formatter/__init__.py b/lib_not_dr/logger/formatter/__init__.py index 47bb3cb..99c2a12 100644 --- a/lib_not_dr/logger/formatter/__init__.py +++ b/lib_not_dr/logger/formatter/__init__.py @@ -121,23 +121,23 @@ class LevelFormatter(BaseFormatter): level_name_map = { 0: 'NOTSET', - 2: 'TRACE', - 5: 'FINE', - 7: 'DEBUG', - 10: 'INFO', + 5: 'TRACE', + 7: 'FINE', + 10: 'DEBUG', + 20: 'INFO', 30: 'WARN', - 50: 'ERROR', - 90: 'FATAL' + 40: 'ERROR', + 50: 'FATAL' } name_level_map = { 'NOTSET': 0, - 'TRACE': 2, - 'FINE': 5, - 'DEBUG': 7, - 'INFO': 10, + 'TRACE': 5, + 'FINE': 7, + 'DEBUG': 10, + 'INFO': 20, 'WARN': 30, - 'ERROR': 50, - 'FATAL': 90 + 'ERROR': 40, + 'FATAL': 50 } @classmethod