调整逻辑。临时提交
This commit is contained in:
@@ -41,15 +41,15 @@ class LogManager:
|
||||
return logger
|
||||
|
||||
@classmethod
|
||||
def info(cls, text, udid):
|
||||
def info(cls, text, udid="system"):
|
||||
cls._setupLogger(udid, "infoLogger", "info.log", level=logging.INFO).info(f"[{udid}] {text}")
|
||||
|
||||
@classmethod
|
||||
def warning(cls, text, udid):
|
||||
def warning(cls, text, udid="system"):
|
||||
cls._setupLogger(udid, "warningLogger", "warning.log", level=logging.WARNING).warning(f"[{udid}] {text}")
|
||||
|
||||
@classmethod
|
||||
def error(cls, text, udid):
|
||||
def error(cls, text, udid="system"):
|
||||
cls._setupLogger(udid, "errorLogger", "error.log", level=logging.ERROR).error(f"[{udid}] {text}")
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user