Getting Started
Add logging in 2 minutes
Getting Started
Section titled “Getting Started”Install
Section titled “Install”# TypeScript / Node.js / Bunnpm install @karloscodes/lognorth-sdk
# Gogo get github.com/karloscodes/lognorth-sdk-goimport LogNorth from '@karloscodes/lognorth-sdk'
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 })That’s it. Regular logs batch automatically. Errors send immediately.
Error Detection
Section titled “Error Detection”| Method | Behavior |
|---|---|
LogNorth.log() | Batched (10 events or 5s) |
LogNorth.error() | Sent immediately |