voicegw logs
Show recent request logs from the gateway’s SQLite database.Purpose
Thelogs command displays a table of recent gateway requests, including the timestamp, project, modality, model, cost, latency, and status. Use it to debug request flow, investigate errors, or monitor activity in real time.
Syntax
Options
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--config | -c | string | null | Path to voicegw.yaml. Auto-discovered if omitted. |
--project | -p | string | null | Filter logs to a specific project ID. |
--tail | -n | integer | 20 | Number of rows to display. |
--modality | -m | string | null | Filter by modality: stt, llm, or tts. |
Prerequisites
Cost tracking must be enabled invoicegw.yaml for logs to be recorded. If disabled, the command prints a warning and exits.
Output
A table with columns:| Column | Description |
|---|---|
| Time | Request timestamp in HH:MM:SS format. |
| Project | Project ID, or - if untagged. |
| Modality | STT, LLM, or TTS. |
| Model | Full model ID (e.g., deepgram/nova-3). |
| Cost | Cost in USD with 6 decimal places. |
| Latency | Total latency in milliseconds. |
| Status | success, error, or fallback. |
Examples
Show the last 20 requests
Show the last 50 STT requests
Filter by project
Combine filters
tonys-pizza project.
Exit Codes
| Code | Meaning |
|---|---|
0 | Success (including when no logs are found). |
1 | Config failed to load. |
Related Commands
voicegw costs— aggregated cost view instead of individual recordsvoicegw status— check which providers are activevoicegw projects— find project IDs to filter on