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

Method format

trinity/utils/log.py:29–34  ·  view source on GitHub ↗
(self, record: logging.LogRecord)

Source from the content-addressed store, hash-verified

27 super().__init__(fmt, datefmt)
28
29 def format(self, record: logging.LogRecord) -> str:
30 msg = super().format(record)
31 if record.message:
32 prefix = msg.split(record.message)[0]
33 msg = msg.replace("\n", f"\r\n{prefix}")
34 return msg
35
36
37# Process global logger for Ray actors, since Ray may create multiple processes and we want to reuse the logger instance within the same process.

Callers 15

fix_a_slash_bFunction · 0.45
construct_promptFunction · 0.45
resetMethod · 0.45
_record_historyMethod · 0.45
mainFunction · 0.45
test_task_formatterMethod · 0.45

Calls

no outgoing calls