def to_json(self, labels=None):
    'Convert LogEvent object to valid JSON.'
    output = self.to_dict(labels)
    return json.dumps(output, cls=DateTimeEncoder, ensure_ascii=False)
Convert LogEvent object to valid JSON.
def to_json(self, labels=None):
    
    output = self.to_dict(labels)
    return json.dumps(output, cls=DateTimeEncoder, ensure_ascii=False)