Skip to content
Install · free

LogNorth Documentation

LogNorth docs: install the server, add an SDK, connect your coding agent, and run it day to day.

1. Install

Terminal window
npm install lognorth

2. Configure

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

3. Log

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

4. Add middleware (optional)

import { middleware } from 'lognorth/express'
app.use(middleware())
Method Behavior
LogNorth.log() Batched (10 events or 5s)
LogNorth.error() Sent immediately

Just HTTP POST. No vendor lock-in.

POST /api/v1/events/batch
Authorization: Bearer YOUR_API_KEY
{"events": [{"message": "...", "context": {...}}]}