def METHOD_NAME(self, host, category, logdata):
    options = {'app': 'ansible', 'meta': {'playbook': self.playbook_name, 'host': host, 'category': category}}
    logdata['info'].pop('invocation', None)
    warnings = logdata['info'].pop('warnings', None)
    if warnings is not None:
        self.flush({'warn': warnings}, options)
    self.flush(logdata, options)