Back to Vibe Coder Toolkit
Sessions
Unified Logs
One stream, all sources
npx promptreports-cli logsPulls unresolved issues from Sentry, deployments from Vercel, exceptions from PostHog into one time-sorted stream.
logs merges every logging source you have into a single chronological stream. Sentry errors + Vercel deployments + PostHog exceptions — sorted by timestamp, color-coded by severity, filterable by source/level/search term. No more switching between dashboards at 2am.
On this page
Prerequisites
- At least one of: SENTRY_AUTH_TOKEN, VERCEL_TOKEN, POSTHOG_PERSONAL_API_KEY
- SENTRY_ORG + SENTRY_PROJECT for Sentry
- POSTHOG_PROJECT_ID for PostHog
Flags & Options
| Flag | Description | Default |
|---|---|---|
| --source <sources> | Comma-separated: sentry, vercel, posthog | all three |
| --since <duration> | Time window: 30m, 2h, 7d | 2h |
| --level <levels> | Comma-separated: error, warn, info | — |
| --search <term> | Filter messages/routes by keyword | — |
| --json | JSON output | — |
Examples
Last 2 hours, all sources
npx promptreports-cli logsDefault — your 2am debug view.
Sentry errors only, 7d
npx promptreports-cli logs --source sentry --level error --since 7dWeekly error review.
Search for checkout bugs
npx promptreports-cli logs --search checkout --since 24hFind every checkout-related log across providers.
Output
Time-sorted table: time, source (color-coded), level, message (truncated). Summary line shows total count and error/warn breakdown.
Time Source Level Message
14:45:23 Sentry ERR Authentication timeout (12 events in last 2h)
14:43:11 Vercel INF Deploy READY: abc1234 fix: improve cache
14:40:55 PostHog ERR Exception: null reference at checkout.tsx:42
14:38:02 Sentry WRN Slow query: /api/search (avg 2.1s)
14:35:10 Vercel INF Deploy BUILDING: feat: add user prefs
... and 22 more entries
27 entries from Sentry, Vercel, PostHog — 8 errors, 3 warnings, 16 infoWhat it reads and writes
Reads
Nothing
Writes
Nothing (read-only)
API calls
- GET https://sentry.io/api/0/projects/{org}/{project}/issues/?query=is:unresolved
- GET https://api.vercel.com/v6/deployments?limit=20
- GET https://app.posthog.com/api/projects/{id}/events/?event=$exception
- 10s timeout each
Free vs Pro usage
Free tier
- Debug production issues without tab-switching
- Correlate "user says X is broken" with actual errors
- Paste output into bug tickets
Pro tier
Upgrade- Save log queries as reusable views
- Auto-run logs on deploy webhook — get alerted if errors spike
- Cross-source correlation (Sentry error + Vercel deploy same timestamp = root cause)
- Persist logs beyond provider retention windows
Pro tips
- --search is fuzzy-matched across messages and route paths
- Start with --since 30m if prod is actively on fire
- Combine --level error + --search {feature} to scope noise