We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ef49a7 commit ca09e80Copy full SHA for ca09e80
tmuxp/log.py
@@ -57,16 +57,6 @@ def set_style(
57
return prefix + message + suffix
58
59
60
-class LogTemplateFn(t.Protocol):
61
- def template(
62
- self,
63
- record: logging.LogRecord,
64
- stylized: t.Optional[bool],
65
- **kwargs: t.Any,
66
- ) -> str:
67
- ...
68
-
69
70
def default_log_template(
71
self: t.Type[logging.Formatter],
72
record: logging.LogRecord,
@@ -119,7 +109,7 @@ def default_log_template(
119
109
return levelname + asctime + name
120
110
121
111
122
-class LogFormatter(logging.Formatter, LogTemplateFn):
112
+class LogFormatter(logging.Formatter):
123
113
template = default_log_template
124
114
125
115
def __init__(self, color=True, *args, **kwargs):
0 commit comments