Usage
Options
Show
n most recent logs. Defaults to showing all available logs.Print a log line for every successful function execution. By default, only errors and console logs are shown.
Output raw log events as JSONL (JSON Lines) format for parsing with other tools.
Watch logs from this project’s production deployment instead of dev.
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
--jsonl, each log line is a JSON object containing structured data about the execution.