Skip to main content

Module logs

Module logs 

Source
Expand description

infra logs command surface: querying, searching, and tracing the log store.

Dispatches the LogsCommands subcommands (view, search, stream, export, cleanup, delete, summary, show, trace, request, tools, audit) and defines the serializable output rows shared across them. Two dispatch paths exist: execute boots its own context, while execute_with_db reuses an already-open DatabaseContext for the read-only subcommands.

Modules§

duration
request
infra logs request subcommands for inspecting AI provider requests.
shared
Formatting helpers shared across the infra logs subcommands.
tools
infra logs tools subcommands for listing MCP tool executions.
trace
infra logs trace subcommands for reconstructing execution traces.
types

Structs§

LogCleanupOutput
LogDeleteOutput
LogEntryRow
LogExportOutput
LogFilters
LogViewOutput
MessageRow
ToolCallRow

Enums§

LogsCommands

Functions§

cost_microdollars_to_dollars
display_log_row
execute
execute_with_db
format_optional_duration_ms
format_timestamp