Skip to main content
Back to Vibe Coder Toolkit
Sessions

Unified Logs

One stream, all sources

npx promptreports-cli logs

Pulls 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.

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

FlagDescriptionDefault
--source <sources>Comma-separated: sentry, vercel, posthogall three
--since <duration>Time window: 30m, 2h, 7d2h
--level <levels>Comma-separated: error, warn, info
--search <term>Filter messages/routes by keyword
--jsonJSON output

Examples

Last 2 hours, all sources

npx promptreports-cli logs

Default — your 2am debug view.

Sentry errors only, 7d

npx promptreports-cli logs --source sentry --level error --since 7d

Weekly error review.

Search for checkout bugs

npx promptreports-cli logs --search checkout --since 24h

Find 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 info

What 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
Free to try

Install the whole toolkit.

One command unlocks all 23 tools.