MCPcopy Index your code
hub / github.com/AI45Lab/Code / log

Method log

core/src/orchestration/workflow.rs:310–316  ·  view source on GitHub ↗

Emit a best-effort structured log line on the [`WorkflowEvent`] stream. Synchronous and non-failing: a full channel drops the line rather than blocking the workflow.

(&self, level: &str, message: &str, fields: serde_json::Value)

Source from the content-addressed store, hash-verified

308 /// Synchronous and non-failing: a full channel drops the line rather than
309 /// blocking the workflow.
310 pub fn log(&self, level: &str, message: &str, fields: serde_json::Value) {
311 let _ = self.events.send(WorkflowEvent::Log {
312 level: level.to_string(),
313 message: message.to_string(),
314 fields,
315 });
316 }
317}
318
319#[cfg(test)]

Callers 15

log_emits_a_log_eventFunction · 0.45
test.mjsFile · 0.45
test_serve.mjsFile · 0.45
ptc_soak.mjsFile · 0.45
logFunction · 0.45
test-helpers.mjsFile · 0.45
mainFunction · 0.45
runAllMethod · 0.45

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected