MCPcopy Index your code
hub / github.com/python/cpython / add_handlers

Method add_handlers

Lib/logging/config.py:902–908  ·  view source on GitHub ↗

Add handlers to a logger from a list of names.

(self, logger, handlers)

Source from the content-addressed store, hash-verified

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 """

Callers 1

common_logger_configMethod · 0.95

Calls 1

addHandlerMethod · 0.80

Tested by

no test coverage detected