Skip to content

Bun / Node.js

Add logging to Bun or Node.js apps

Terminal window
bun add @lognorth/client
import { lognorth } from '@lognorth/client/elysia'
new Elysia().use(lognorth())
import { lognorth } from '@lognorth/client/hono'
app.use(lognorth())
const { lognorth } = require('@lognorth/client/express')
app.use(lognorth())
import { log } from '@lognorth/client'
log("User signed up", { user_id: 123 })
log("Payment failed", { user_id: 123, error: "Card declined" })