Add handlers to a logger from a list of names.
(self, logger, handlers)
| 900 | return result |
| 901 | |
| 902 | def add_handlers(self, logger, handlers): |
| 903 | """Add handlers to a logger from a list of names.""" |
| 904 | for h in handlers: |
| 905 | try: |
| 906 | logger.addHandler(self.config['handlers'][h]) |
| 907 | except Exception as e: |
| 908 | raise ValueError('Unable to add handler %r' % h) from e |
| 909 | |
| 910 | def common_logger_config(self, logger, config, incremental=False): |
| 911 | """ |
no test coverage detected