MCPcopy Create free account
hub / github.com/ModalityDance/Omni-R1 / get_logger

Function get_logger

src/transformers/src/transformers/utils/logging.py:147–158  ·  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 transformers module.

(name: Optional[str] = None)

Source from the content-addressed store, hash-verified

145
146
147def get_logger(name: Optional[str] = None) -> logging.Logger:
148 """
149 Return a logger with the specified name.
150
151 This function is not supposed to be directly accessed unless you are writing a custom transformers module.
152 """
153
154 if name is None:
155 name = _get_library_name()
156
157 _configure_library_root_logger()
158 return logging.getLogger(name)
159
160
161def get_verbosity() -> int:

Calls 2

_get_library_nameFunction · 0.85

Tested by

no test coverage detected