Skip to main content
Stream function logs from your Convex deployment. By default, this streams from your project’s dev deployment.

Usage

Options

number
Show n most recent logs. Defaults to showing all available logs.
boolean
Print a log line for every successful function execution. By default, only errors and console logs are shown.
boolean
Output raw log events as JSONL (JSON Lines) format for parsing with other tools.
boolean
Watch logs from this project’s production deployment instead of dev.
string
Path to a custom file of environment variables for choosing the deployment. Same format as .env.local or .env files, and overrides them.

Examples

Stream dev deployment logs

Watch logs from your development deployment:

View recent production logs

See the last 100 logs from production:

Monitor all executions including successes

Watch all function executions, including successful ones:

Export logs for analysis

Output logs in JSONL format for processing:

Debug production issues

View recent production logs with full execution details:

Log output format

By default, logs are displayed in a human-readable format showing:
  • Timestamp
  • Function name and type (query/mutation/action)
  • Execution status (success/error)
  • Console output from your functions
  • Error messages and stack traces
With --jsonl, each log line is a JSON object containing structured data about the execution.

Common use cases

Development debugging

Leave logs running while developing to see real-time feedback:

Production monitoring

Monitor production errors in real-time:

Log aggregation

Collect logs for external analysis tools: