Skip to main content

Crate agentic_logging

Crate agentic_logging 

Source
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=1 environment variable

Re-exports§

pub use chrono;

Structs§

CallTimer
Timer utility for measuring call duration and generating call IDs.
LogWriter
Writer for JSONL log files and markdown response files.
TokenUsage
Token usage information for API calls.
ToolCallRecord
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.