Quick Start
What’s Logged
Each JSONL line records:timestamp,session_id,agent_nametool_name,tool_input,execution_time_ms- Optional
tool_output(wheninclude_output=True)
after_tool automatically when you call enable_audit_log().
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
log_path | str | ~/.praisonai/audit.jsonl | Append-only JSONL path |
include_output | bool | False | Include truncated tool output |
max_output_chars | int | 500 | Max output chars when include_output=True |
Thread Safety (PR #2062)
- Uses
threading.Lockfor concurrent multi-agent writes - Keeps a long-lived file handle (reopened lazily if rotated)
- Each write calls
fsyncfor crash durability - Call
get_audit_log().close()on shutdown to flush and release the handle
Related
Security Overview
Enable audit log with other security features
Protected Paths
Audit log file is itself protected

