MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / add_handler

Function add_handler

src/diffusers/utils/logging.py:202–208  ·  view source on GitHub ↗

adds a handler to the HuggingFace Diffusers' root logger.

(handler: logging.Handler)

Source from the content-addressed store, hash-verified

200
201
202def add_handler(handler: logging.Handler) -> None:
203 """adds a handler to the HuggingFace Diffusers' root logger."""
204
205 _configure_library_root_logger()
206
207 assert handler is not None
208 _get_library_root_logger().addHandler(handler)
209
210
211def 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