MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / __init__

Method __init__

tests/utils/log_test.py:51–58  ·  view source on GitHub ↗
(self, aid: int, log_level=logging.INFO)

Source from the content-addressed store, hash-verified

49@ray.remote
50class LogActor:
51 def __init__(self, aid: int, log_level=logging.INFO):
52 assert os.environ.get(LOG_DIR_ENV_VAR) is not None, "LOG_DIR_ENV_VAR must be set"
53 self.logger = get_logger(f"actor_{aid}", in_ray_actor=True, level=log_level)
54 self.logger.info(f"LogActor {aid} initialized ")
55 self.logger.debug(f"LogActor {aid} initialized")
56 self.aid = aid
57 self.actor = ActorInActor.remote(f"actor_{aid}", log_level)
58 ray.get(self.actor.__ray_ready__.remote())
59
60 def log_info(self, message: str):
61 self.logger.info(f"LogActor {self.aid} info: {message}")

Callers

nothing calls this directly

Calls 4

get_loggerFunction · 0.90
debugMethod · 0.80
remoteMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected