MCPcopy
hub / github.com/microsoft/RD-Agent / log_object

Method log_object

rdagent/log/logger.py:108–112  ·  view source on GitHub ↗
(self, obj: object, *, tag: str = "")

Source from the content-addressed store, hash-verified

106 return pid_chain
107
108 def log_object(self, obj: object, *, tag: str = "") -> None:
109 tag = f"{self._tag}.{tag}.{self.get_pids()}".strip(".")
110
111 for storage in [self.storage] + self.other_storages:
112 storage.log(obj, tag=tag)
113
114 def _log(self, level: str, msg: str, *, tag: str = "", raw: bool = False) -> None:
115 caller_info = get_caller_info(level=3)

Callers 15

__init__Method · 0.80
direct_exp_genMethod · 0.80
codingMethod · 0.80
runningMethod · 0.80
feedbackMethod · 0.80
recordMethod · 0.80
loadMethod · 0.80
async_genMethod · 0.80
executeMethod · 0.80
loadMethod · 0.80
developMethod · 0.80
__init__Method · 0.80

Calls 2

get_pidsMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected