File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,6 @@ class IndentFormatter(logging.Formatter):
13
13
indentation using ``'\t '`` characters.
14
14
"""
15
15
16
- color_map = {
17
- logging .CRITICAL : 31 , # red
18
- logging .ERROR : 31 , # red
19
- logging .WARNING : 33 , # yellow
20
- SUCCESS : 32 , # green
21
- logging .INFO : 34 , # blue
22
- }
23
-
24
16
@staticmethod
25
17
def identify_cut (filenames ):
26
18
"""
@@ -59,12 +51,10 @@ def update_format(self, record):
59
51
"""
60
52
61
53
prefix = "\u001b ["
62
- color = f"{ self .color_map [record .levelno ]} m"
63
54
bold = "1m"
64
55
reset = "0m"
65
56
self ._style ._fmt = (
66
- "%(asctime)s │ "
67
- f"{ prefix } { color } %(levelname)-8s{ prefix } { reset } │ "
57
+ "::%(levelname)-8s:: %(asctime)s │ "
68
58
f"%(indent)s{ prefix } { bold } %(function)s{ prefix } { reset } : "
69
59
"%(message)s"
70
60
)
You can’t perform that action at this time.
0 commit comments