示例#1
0
def stream_sequence_logs(stream, debug_level=logging.INFO):
    """
    Add the custom stream handler to the execution logger
    """
    handler = logging.StreamHandler(stream)
    handler.setFormatter(SequenceLoggingFormatter())
    handler.setLevel(debug_level)
    LOGGER.addHandler(handler)
示例#2
0
def stream_sequence_logs(stream, debug_level=logging.INFO):
    """
    Add the custom stream handler to the execution logger
    """
    handler = logging.StreamHandler(stream)
    handler.setFormatter(SequenceLoggingFormatter())
    handler.setLevel(debug_level)
    LOGGER.addHandler(handler)
示例#3
0
def add_log_handler(handler):
    """
    Add a log handler to the execution logger
    """
    LOGGER.addHandler(handler)
示例#4
0
def add_log_handler(handler):
    """
    Add a log handler to the execution logger
    """
    LOGGER.addHandler(handler)