'Configure a filter from a dictionary.'

def configure_filter(self, config):

    if ('()' in config):
        result = self.configure_custom(config)
    else:
        name = config.get('name', '')
        result = logging.Filter(name)
    return result
