Bun / Node.js
Add logging to Bun or Node.js apps
Bun / Node.js
Section titled “Bun / Node.js”bun add @lognorth/clientAutomatic Logging
Section titled “Automatic Logging”Elysia
Section titled “Elysia”import { lognorth } from '@lognorth/client/elysia'
new Elysia().use(lognorth())import { lognorth } from '@lognorth/client/hono'
app.use(lognorth())Express
Section titled “Express”const { lognorth } = require('@lognorth/client/express')
app.use(lognorth())Manual Logging
Section titled “Manual Logging”import { log } from '@lognorth/client'
log("User signed up", { user_id: 123 })log("Payment failed", { user_id: 123, error: "Card declined" })