def add_log_line()

in CWMetricsToOpenSearch/es_sink/line_buffer.py [0:0]


    def add_log_line(self, log_line):
        '''Send all log lines to this function.'''
        if isinstance(log_line, dict):
            self.add_line_dict(log_line)
        elif isinstance(log_line, str):
            self.add_line_str(log_line)
        else:
            raise ValueError('{} is neither str nor dict'.format(log_line))