Expand description
Centralized JSONL logging infrastructure for agentic tools.
This crate provides utilities for logging tool calls to JSONL files with:
- Atomic writes with file locking
- Optional markdown response files for large outputs
- Daily bucket organization
- Disable via
AGENTIC_LOGGING_DISABLED=1environment variable
Re-exports§
pub use chrono;
Structs§
- Call
Timer - Timer utility for measuring call duration and generating call IDs.
- LogWriter
- Writer for JSONL log files and markdown response files.
- Token
Usage - Token usage information for API calls.
- Tool
Call Record - A single tool call record for JSONL logging.
Enums§
- LogError
- Errors that can occur during logging operations.
Functions§
- logging_
disabled - Check if logging is disabled via environment variable.