示例#1
0
def critical(chn, msg, *args, frameskip=0, **kwargs):
    if dt.DV(chn, dt.DL.CRITICAL):
        _logger.critical(
            _log_prefix(marker="C", frameskip=frameskip) + msg, *args,
            **kwargs)
示例#2
0
def log_pp(channel, level, msg, *args, **kwargs):
    if dt.DV(channel, level):
        _logger_std.log_pp(msg, *args, **kwargs)
示例#3
0
def error(chn, msg, *args, frameskip=0, **kwargs):
    if dt.DV(chn, dt.DL.ERROR):
        _logger.error(
            _log_prefix(marker="E", frameskip=frameskip) + msg, *args,
            **kwargs)
示例#4
0
def warn(chn, msg, *args, frameskip=0, **kwargs):
    if dt.DV(chn, dt.DL.WARNING):
        _logger.warning(
            _log_prefix(marker="W", frameskip=frameskip) + msg, *args,
            **kwargs)
示例#5
0
def info(chn, msg, *args, frameskip=0, **kwargs):
    if dt.DV(chn, dt.DL.INFO):
        _logger.info(
            _log_prefix(marker="I", frameskip=frameskip) + msg, *args,
            **kwargs)
示例#6
0
def debug(chn, msg, *args, frameskip=0, **kwargs):
    if dt.DV(chn, dt.DL.DEBUG):
        _logger.debug(
            _log_prefix(marker="D", frameskip=frameskip) + msg, *args,
            **kwargs)
示例#7
0
def trace(chn, msg, *args, frameskip=0, **kwargs):
    if dt.DV(chn, dt.DL.TRACE):
        _logger.debug(
            _log_prefix(marker="T", frameskip=frameskip) + msg, *args,
            **kwargs)