Add Level color formatter ( name undecide )

This commit is contained in:
shenjack 2023-11-01 20:01:03 +08:00
parent e78a9a9fc0
commit eb6e250ba2
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -26,10 +26,6 @@ class BaseFormatter(Options):
@classmethod @classmethod
def info(cls) -> str: def info(cls) -> str:
infos = {BaseFormatter.name: BaseFormatter._info()} infos = {BaseFormatter.name: BaseFormatter._info()}
# cache = "## Base Formatter\n"
# cache += BaseFormatter._info()
# cache += f"## {cls.name}\n"
# cache += cls._info()
cache = '' cache = ''
for formatter in cls.sub_formatter: for formatter in cls.sub_formatter:
infos[formatter.name] = formatter._info() infos[formatter.name] = formatter._info()
@ -162,7 +158,17 @@ class StdFormatter(BaseFormatter):
@classmethod @classmethod
def _info(cls) -> str: def _info(cls) -> str:
return '' return 'None'
class LevelColorFormatter(BaseFormatter):
name = 'LevelColorFormatter'
enable_color: bool = True
@classmethod
def _info(cls) -> str:
return 'None'
if __name__ == '__main__': if __name__ == '__main__':