Skip to main content

enable_audit_log

Function
This function is defined in the security module.
Enable an append-only JSONL audit log for all agent tool calls.

Signature

Parameters

Optional[str]
Path to the audit log file. Defaults to ~/.praisonai/audit.jsonl.
bool
default:"False"
Whether to include tool output in log entries.

Returns

str
Hook ID string.

Usage

Uses

  • AuditLogHook
  • add_hook
  • audit.create_after_tool_hook

Used By

Source

View on GitHub

praisonai/security/__init__.py at line 132