reset level map

This commit is contained in:
shenjack 2023-11-05 23:59:59 +08:00
parent 60b9d03182
commit 3775ef6d7a
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -121,23 +121,23 @@ class LevelFormatter(BaseFormatter):
level_name_map = { level_name_map = {
0: 'NOTSET', 0: 'NOTSET',
2: 'TRACE', 5: 'TRACE',
5: 'FINE', 7: 'FINE',
7: 'DEBUG', 10: 'DEBUG',
10: 'INFO', 20: 'INFO',
30: 'WARN', 30: 'WARN',
50: 'ERROR', 40: 'ERROR',
90: 'FATAL' 50: 'FATAL'
} }
name_level_map = { name_level_map = {
'NOTSET': 0, 'NOTSET': 0,
'TRACE': 2, 'TRACE': 5,
'FINE': 5, 'FINE': 7,
'DEBUG': 7, 'DEBUG': 10,
'INFO': 10, 'INFO': 20,
'WARN': 30, 'WARN': 30,
'ERROR': 50, 'ERROR': 40,
'FATAL': 90 'FATAL': 50
} }
@classmethod @classmethod