~ $ man 3 lognorth-node

Logs and errors for Node.js and Bun.

One package. Express, Hono, Next.js. You own the data.

[01] install

terminal
$ npm install lognorth

[02] use

app.ts
import LogNorth from 'lognorth'

LogNorth.config('https://logs.yoursite.com', 'your-api-key')

LogNorth.log('User signed up', { user_id: 123 })
LogNorth.error('Checkout failed', err, { order_id: 42 })

[03] middleware

express · hono · next.js
// Express
import { middleware } from 'lognorth/express'
app.use(middleware())

// Hono
import { middleware } from 'lognorth/hono'
app.use(middleware())

// Next.js
import { withLogger } from 'lognorth/next'
export const GET = withLogger()(handler)

[04] out of the box

What you get.

  • Middleware for Express, Hono, and Next.js with trace_id
  • Pino transport: keep your logger, add LogNorth
  • Full stack traces with file, line, and function
  • Errors grouped into issues. You get alerted.
  • Skip noisy routes like /healthz and /_health

[05] the price

No SaaS. No monthly bill.

LogNorth runs on your server. One Docker container. SQLite. Free and open source under MIT.

From npm install to tracking errors in under 3 minutes.