GitHub 37
Skip to content
ViteHub is still experimental. Expect bugs and breaking changes.

Logs

Structured logs powered by Evlog, with Explorer, Stream, and a data inspector.

nuxt.config.ts
export default defineNuxtConfig({
  modules: ['vite-hub/nuxt'],
  vitehub: { logs: { source: './server/logs.ts' } },
  $development: {
    vitehub: { logs: true },
  },
})
nuxt.config.ts

ViteHub Logs uses Evlog for structured request events. Keep Evlog's logger API, framework adapters, options, and drains. ViteHub adds a read contract, Console inspection, and CLI access.

logs: true keeps events in memory while the dev server runs. A production build needs source, a server file that reads the log service you already use. See Read an existing backend.

Start locally

Add fields to one request event and see it in the Console.

Keep your pipeline

Read from your existing backend without a second exporter.

Inspect structured data

Search events in Explorer or Stream and open their fields in the inspector.

Know the limits

Local retention is temporary. Follow polls the source and can miss events.