def METHOD_NAME(payload, err=False):
    headerdata, data = payload.split("\n", 1)
    header = _parse_header(headerdata)
    name = header["processname"]
    if err:
        name += " (stderr)"
    prefix = "{name:{width}} | ".format(name=name, width=WIDTH)
    for line in data.splitlines():
        format_as_error = err and all(
            [marker not in line for marker in NON_ERROR_MARKERS]
        )
        output_line = prefix + line + "\n"
        if "--dev" in sys.argv:
            output_line = colors.color(name, output_line, error=format_as_error)
        sys.stderr.write(output_line)
    sys.stderr.flush()