agentlib-logger 0.1.0

Observability and logging middleware for the AgentLib framework
Documentation

agentlib-logger

Observability and logging middleware for AgentLib. Provides detailed insights into agent execution, model requests, tool calls, and performance metrics.

Features

  • Structured Logging: Log entries are formatted for readability.
  • Transports: Direct logs to console, files, or external collectors.
  • Scope Filtering: Filter logs by scope (e.g., only show tool calls or only show reasoning steps).
  • Execution Timing: Automatically measures and logs the duration of each run and sub-step.

Usage

use agentlib_logger::Logger;

agent.use_middleware(Box::new(Logger::default()));