MCPcopy Index your code
hub / github.com/huggingface/diffusers / get_logger

Function get_logger

src/diffusers/utils/logging.py:131–144  ·  view source on GitHub ↗

Return a logger with the specified name. This function is not supposed to be directly accessed unless you are writing a custom diffusers module.

(name: str | None = None)

Source from the content-addressed store, hash-verified

129
130
131def get_logger(name: str | None = None) -> logging.Logger:
132 """
133 Return a logger with the specified name.
134
135 This function is not supposed to be directly accessed unless you are writing a custom diffusers module.
136 """
137
138 if name is None:
139 name = _get_library_name()
140
141 _configure_library_root_logger()
142 logger = logging.getLogger(name)
143 _ensure_rank_zero_filter(logger)
144 return logger
145
146
147def get_verbosity() -> int:

Calls 3

_get_library_nameFunction · 0.85
_ensure_rank_zero_filterFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…