fix typing

This commit is contained in:
shenjack 2023-11-28 00:29:41 +08:00
parent 77df20b3d7
commit 357a996051
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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