test/functional/combine_logs.py
def print_logs_plain(log_events, colors):
    """Renders the iterator of log events into text."""
    for event in log_events:
        lines = event.event.splitlines()
        print("{0} {1: <5} {2} {3}".format(colors[event.source.rstrip()], event.source, lines[0], colors["reset"]))
        if len(lines) > 1:
            for line in lines[1:]:
                print("{0}{1}{2}".format(colors[event.source.rstrip()], line, colors["reset"]))
Renders the iterator of log events into text.
Renders the iterator of log events into text.
Renders the iterator of log events into text .
def print_logs_plain(log_events, colors):
    for event in log_events:
        lines = event.event.splitlines()
        print("{0} {1: <5} {2} {3}".format(colors[event.source.rstrip()], event.source, lines[0], colors["reset"]))
        if len(lines) > 1:
            for line in lines[1:]:
                print("{0}{1}{2}".format(colors[event.source.rstrip()], line, colors["reset"]))
def print_logs_plain ( log_events , colors ) : for event in log_events : lines = event . event . splitlines ( ) print ( "{0} {1: <5} {2} {3}" . format ( colors [ event . source . rstrip ( ) ] , event . source , lines [ 0 ] , colors [ "reset" ] ) ) if len ( lines ) > 1 : for line in lines [ 1 : ] : print ( "{0}{1}{2}" . format ( colors [ event . source . rstrip ( ) ] , line , colors [ "reset" ] ) )
Renders the iterator of log events into text.
Renders the iterator of log events into text .
"""Renders the iterator of log events into text."""
log_events
colors