From 60b9d031829c698e95ac9d6c43f2fe0f7e13c511 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 5 Nov 2023 23:56:56 +0800 Subject: [PATCH] reset level data --- lib_not_dr/logger/logger.py | 2 +- lib_not_dr/logger/outstream.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib_not_dr/logger/logger.py b/lib_not_dr/logger/logger.py index f97e47b..31f5dd2 100644 --- a/lib_not_dr/logger/logger.py +++ b/lib_not_dr/logger/logger.py @@ -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: """ diff --git a/lib_not_dr/logger/outstream.py b/lib_not_dr/logger/outstream.py index 8741e86..feb4140 100644 --- a/lib_not_dr/logger/outstream.py +++ b/lib_not_dr/logger/outstream.py @@ -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