reset level data

This commit is contained in:
shenjack 2023-11-05 23:56:56 +08:00
parent 4b268f0706
commit 60b9d03182
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ class Logger(Options):
outputs: List[BaseOutputStream] = []
enable: bool = True
level: int = 20
level: int = 20 # info
def log_for(self, level: int) -> bool:
"""

View File

@ -28,7 +28,7 @@ __all__ = [
class BaseOutputStream(Options):
name = 'BaseOutputStream'
level: int = 10
level: int = 20
enable: bool = True
formatter: BaseFormatter
@ -49,7 +49,7 @@ class BaseOutputStream(Options):
class StdioOutputStream(BaseOutputStream):
name = 'StdioOutputStream'
level: int = 10
level: int = 20
formatter: BaseFormatter = StdFormatter()
def write_stdout(self, message: LogMessage) -> None:
@ -81,7 +81,7 @@ class StdioOutputStream(BaseOutputStream):
class FileCacheOutputStream(BaseOutputStream):
name = 'FileCacheOutputStream'
level: int = 10
level: int = 20
formatter: BaseFormatter = StdFormatter(enable_color=False)
text_cache: io.StringIO = None