def emit_to_splunk(message, level, name):
    '\n    Emit a single message to splunk\n    '
    if isinstance(message, (list, dict)):
        message = filter_logs(message, remove_dots=False)
    if (SPLUNK_HANDLER is None):
        return False
    handler = SPLUNK_HANDLER
    handler.emit(MockRecord(message, level, time.asctime(), name))
    return True
Emit a single message to splunk
def emit_to_splunk(message, level, name):
    '\n    \n    '
    if isinstance(message, (list, dict)):
        message = filter_logs(message, remove_dots=False)
    if (SPLUNK_HANDLER is None):
        return False
    handler = SPLUNK_HANDLER
    handler.emit(MockRecord(message, level, time.asctime(), name))
    return True