fix typing
This commit is contained in:
parent
77df20b3d7
commit
357a996051
@ -147,7 +147,7 @@ class Logger(Options):
|
|||||||
"""
|
"""
|
||||||
from lib_not_dr.logger.config import storage
|
from lib_not_dr.logger.config import storage
|
||||||
if storage.have_logger(name):
|
if storage.have_logger(name):
|
||||||
return storage.get_logger(name)
|
return storage.loggers[name]
|
||||||
return Logger(logger_name=name)
|
return Logger(logger_name=name)
|
||||||
|
|
||||||
def info(self,
|
def info(self,
|
||||||
|
@ -25,9 +25,9 @@ class LogMessage(Options):
|
|||||||
split: str = ' '
|
split: str = ' '
|
||||||
|
|
||||||
# 消息的属性
|
# 消息的属性
|
||||||
flush: bool = None
|
flush: Optional[bool] = None
|
||||||
level: int = 20
|
level: int = 20
|
||||||
log_time: float = None # time.time_ns()
|
log_time: float = 0.0 # time.time_ns() if None
|
||||||
logger_name: str = 'root'
|
logger_name: str = 'root'
|
||||||
logger_tag: Optional[str] = None
|
logger_tag: Optional[str] = None
|
||||||
stack_trace: Optional[FrameType] = None
|
stack_trace: Optional[FrameType] = None
|
||||||
|
Loading…
Reference in New Issue
Block a user