MCPcopy Create free account
hub / github.com/DingGuodong/LinuxBashShellScriptForOps / console_log_msg

Function console_log_msg

functions/log/pyLogging_u3.1.py:47–66  ·  view source on GitHub ↗

记录日志到指定的文件并按照日期切割 :param msg: str, 需要打印日志的普通字符串 :param level: str, 打印日志的级别,可以定义error、warn、debug、info等其他 :param name: str, set the logger with the specified name :param args: 需要打印日志的list、tuple等 :param kwargs: 需要打印日志的字典 :return:

(msg, level="error", name="mylog", *args, **kwargs)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

pyLogging_u3.1.pyFile · 0.70

Calls 5

warningMethod · 0.80
set_file_logger_dateFunction · 0.70
errorMethod · 0.45
debugMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected