MCPcopy Create free account
hub / github.com/AutoForgeAI/autoforge / log

Method log

parallel_orchestrator.py:67–75  ·  view source on GitHub ↗

Write a timestamped log entry.

(self, category: str, message: str, **kwargs)

Source from the content-addressed store, hash-verified

65 f.write(f"=== PID: {os.getpid()} ===\n\n")
66
67 def log(self, category: str, message: str, **kwargs):
68 """Write a timestamped log entry."""
69 timestamp = datetime.now().strftime("%H:%M:%S.%f")[:-3]
70 with self._lock:
71 with open(self.log_file, "a") as f:
72 f.write(f"[{timestamp}] [{category}] {message}\n")
73 for key, value in kwargs.items():
74 f.write(f" {key}: {value}\n")
75 f.write("\n")
76
77 def section(self, title: str):
78 """Write a section header."""

Callers 15

_dump_database_stateFunction · 0.80
_get_test_batchMethod · 0.80
build_feature_batchesMethod · 0.80
get_ready_featuresMethod · 0.80
get_all_completeMethod · 0.80
_spawn_testing_agentMethod · 0.80
_run_initializerMethod · 0.80
_read_outputMethod · 0.80
_on_agent_completeMethod · 0.80
stop_featureMethod · 0.80

Calls 1

writeMethod · 0.80

Tested by 1

waitForAssistantReadyFunction · 0.64