MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / add_handler

Function add_handler

bmtools/utils/logging.py:190–196  ·  view source on GitHub ↗

adds a handler to the HuggingFace Transformers's root logger.

(handler: logging.Handler)

Source from the content-addressed store, hash-verified

188
189
190def add_handler(handler: logging.Handler) -> None:
191 """adds a handler to the HuggingFace Transformers's root logger."""
192
193 _configure_library_root_logger()
194
195 assert handler is not None
196 _get_library_root_logger().addHandler(handler)
197
198
199def remove_handler(handler: logging.Handler) -> None:

Callers

nothing calls this directly

Calls 2

_get_library_root_loggerFunction · 0.85

Tested by

no test coverage detected