reset level data
This commit is contained in:
parent
4b268f0706
commit
60b9d03182
@ -20,7 +20,7 @@ class Logger(Options):
|
|||||||
outputs: List[BaseOutputStream] = []
|
outputs: List[BaseOutputStream] = []
|
||||||
|
|
||||||
enable: bool = True
|
enable: bool = True
|
||||||
level: int = 20
|
level: int = 20 # info
|
||||||
|
|
||||||
def log_for(self, level: int) -> bool:
|
def log_for(self, level: int) -> bool:
|
||||||
"""
|
"""
|
||||||
|
@ -28,7 +28,7 @@ __all__ = [
|
|||||||
class BaseOutputStream(Options):
|
class BaseOutputStream(Options):
|
||||||
name = 'BaseOutputStream'
|
name = 'BaseOutputStream'
|
||||||
|
|
||||||
level: int = 10
|
level: int = 20
|
||||||
enable: bool = True
|
enable: bool = True
|
||||||
|
|
||||||
formatter: BaseFormatter
|
formatter: BaseFormatter
|
||||||
@ -49,7 +49,7 @@ class BaseOutputStream(Options):
|
|||||||
class StdioOutputStream(BaseOutputStream):
|
class StdioOutputStream(BaseOutputStream):
|
||||||
name = 'StdioOutputStream'
|
name = 'StdioOutputStream'
|
||||||
|
|
||||||
level: int = 10
|
level: int = 20
|
||||||
formatter: BaseFormatter = StdFormatter()
|
formatter: BaseFormatter = StdFormatter()
|
||||||
|
|
||||||
def write_stdout(self, message: LogMessage) -> None:
|
def write_stdout(self, message: LogMessage) -> None:
|
||||||
@ -81,7 +81,7 @@ class StdioOutputStream(BaseOutputStream):
|
|||||||
class FileCacheOutputStream(BaseOutputStream):
|
class FileCacheOutputStream(BaseOutputStream):
|
||||||
name = 'FileCacheOutputStream'
|
name = 'FileCacheOutputStream'
|
||||||
|
|
||||||
level: int = 10
|
level: int = 20
|
||||||
formatter: BaseFormatter = StdFormatter(enable_color=False)
|
formatter: BaseFormatter = StdFormatter(enable_color=False)
|
||||||
text_cache: io.StringIO = None
|
text_cache: io.StringIO = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user