reset level data
This commit is contained in:
parent
4b268f0706
commit
60b9d03182
@ -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:
|
||||
"""
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user