def get_docker_log_line_content(log_line):
    """
    Get string from Docker log line object

    :param log_line: docker log line object
    :type log_line: str or dict
    :return: str -- log line
    """
    str_line = ''
    if isinstance(log_line, str):
        str_line = log_line
    elif isinstance(log_line, dict):
        if 'stream' in log_line and isinstance(log_line['stream'], str):
            str_line = log_line['stream']
        else:
            str_line = repr(log_line)
    return str_line.rstrip('\n')
