MCPcopy Index your code
hub / github.com/RustPython/RustPython / add_handlers

Method add_handlers

Lib/logging/config.py:891–897  ·  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

889 return result
890
891 def add_handlers(self, logger, handlers):
892 """Add handlers to a logger from a list of names."""
893 for h in handlers:
894 try:
895 logger.addHandler(self.config['handlers'][h])
896 except Exception as e:
897 raise ValueError('Unable to add handler %r' % h) from e
898
899 def common_logger_config(self, logger, config, incremental=False):
900 """

Callers 1

common_logger_configMethod · 0.95

Calls 1

addHandlerMethod · 0.80

Tested by

no test coverage detected