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)
| 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)] |
no test coverage detected