agentlib-logger 0.1.0

Observability and logging middleware for the AgentLib framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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

```rust
use agentlib_logger::Logger;

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