MCPcopy
hub / github.com/showlab/Show-o / get_logger

Function get_logger

show-o2/models/my_logging.py:107–118  ·  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 muse module.

(name: Optional[str] = None)

Source from the content-addressed store, hash-verified

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

Calls 2

_get_library_nameFunction · 0.70

Tested by

no test coverage detected