MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / get_logger

Function get_logger

diffusers/src/diffusers/utils/logging.py:113–124  ·  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

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

Calls 2

_get_library_nameFunction · 0.85

Tested by

no test coverage detected