agentic-logger (Rust)
AgentLogger for Rust. Emits byte-compatible JSONL via a custom serde_json
formatter (": " / ", " separators, no \u escaping) so the Python query
layer reads it unchanged.
Install
[]
= "0.1"
(Local build: cargo build. Depends only on serde, serde_json, uuid.)
Usage
use ;
use json;
let lg = new?;
lg.info?;
lg.info_full?;
lg.tool_call?;
lg.error?;
lg.file_op?;
lg.decision?;
Notes
pidstored as a string;seq/dur/exit/sizeas unquoted numbers.- ISO 8601 timestamps computed dependency-free (no
chrono), UTC+00:00. moduleis a required parameter (no stack introspection in stable Rust); defaults to"unknown"whenNone.- Run tests:
cargo test. Run the sample emitter:cargo run --example rust_emit -- <dir>.