def configure_filter(self, config):
if '<STR_LIT>' in config:<EOL><INDENT>result = self.configure_custom(config)<EOL><DEDENT>else:<EOL><INDENT>name = config.get('<STR_LIT:name>', '<STR_LIT>')<EOL>result = logging.Filter(name)<EOL><DEDENT>return result<EOL>
Configure a filter from a dictionary.