MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / get_instance

Method get_instance

datastudio/utils/logging.py:165–169  ·  view source on GitHub ↗

Get or create singleton logger instance.

(cls, **kwargs)

Source from the content-addressed store, hash-verified

163
164 @classmethod
165 def get_instance(cls, **kwargs) -> "Logger":
166 """Get or create singleton logger instance."""
167 if cls._instance is None:
168 cls._instance = cls(**kwargs)
169 return cls._instance
170
171 @classmethod
172 def init_from_config(cls, cfg: Dict, work_dir: Optional[str] = None) -> "Logger":

Calls

no outgoing calls

Tested by 2