def common_logger_config(self, logger, config, incremental=False):
level = config.get('<STR_LIT>', None)<EOL>if level is not None:<EOL><INDENT>logger.setLevel(_checkLevel(level))<EOL><DEDENT>if not incremental:<EOL><INDENT>for h in logger.handlers[:]:<EOL><INDENT>logger.removeHandler(h)<EOL><DEDENT>handlers = config.get('<STR_LIT>', None)<EOL>if handlers:<EOL><INDENT>self.add_handlers(logger, handlers)<EOL><DEDENT>filters = config.get('<STR_LIT>', None)<EOL>if filters:<EOL><INDENT>self.add_filters(logger, filters)<EOL><DEDENT><DEDENT>
Perform configuration which is common to root and non-root loggers.