Пример #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)