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

Function get_logger

src/diffusers/utils/logging.py:111–122  ·  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: Optional[str] = None)

Source from the content-addressed store, hash-verified

109
110
111def get_logger(name: Optional[str] = None) -> logging.Logger:
112 """
113 Return a logger with the specified name.
114
115 This function is not supposed to be directly accessed unless you are writing a custom diffusers module.
116 """
117
118 if name is None:
119 name = _get_library_name()
120
121 _configure_library_root_logger()
122 return logging.getLogger(name)
123
124
125def get_verbosity() -> int:

Calls 2

_get_library_nameFunction · 0.85

Tested by

no test coverage detected