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)
def add_log_handler(handler): """ Add a log handler to the execution logger """ LOGGER.addHandler(handler)