Getting Started
Lumber is end-to-end encrypted logging for your servers, with clients for Node.js, Python, Go, Java, Kotlin, C# and PHP. Logs are encrypted with AES-256-GCM (authenticated encryption, one of the ciphers HTTPS uses) before they ever leave your server, so the Lumber API stores only ciphertext.
Prerequisites
- A Lumber account. Sign up in the Lumber app for iPhone, iPad, Android, Mac, Windows or Linux (download it), or on the web at account.lumber.infinitetoken.com. Either way you'll need the app: it's where you create apps and their API keys, since each app's encryption key is made on your device, and where you read your logs.
- One of Node.js 18, Python 3.9, Go 1.22, Java 11, .NET 8 (or .NET Framework 4.6.2) or PHP 8.2, or later. Any other language can send logs over the HTTP API.
Create an app in Lumber
Your server needs one value, an API key, which comes from the Lumber app.
- In the Lumber app, open Apps, select +, give your app a name, and select Create App.
- Lumber generates the app's encryption key on your device and takes you straight to adding an API key. Optionally name it, and select Create.
- Select Copy & Close. The API key is only shown once.
Keep the key in your environment, and never commit it to source control. Use it only on your servers and in other processes you run, never in an app or game you ship to people: it carries your app's encryption key (see Keep the key on your servers).
# .env
LUMBER_API_KEY=your_api_key_here
An API key is two values joined by a dot: a token that authenticates your server, then the app's encryption key. The client sends only the token to Lumber and encrypts your logs with the rest, so the encryption key never reaches Lumber's servers in readable form. The app keeps it in your device's secure storage, and the only copies that leave the device are encrypted to the account key of each person who has access to the app. See API Keys for how keys are shared with your team.
Send your first log
Pick your language, install its client, give it the API key once at startup, and log. Each client encrypts and sends in the background, so logging never holds up your code. Each language's page has the rest: its logging framework, options and delivery.
npm install @infinitetoken/lumber
import lumber from '@infinitetoken/lumber'
lumber.config({ apiKey: process.env.LUMBER_API_KEY! })
lumber.info('Server started', { port: 3000 })
lumber.error('Request failed', { statusCode: 500, path: '/api/orders' })
// On graceful shutdown, send what's still queued
process.on('SIGTERM', async () => {
await lumber.flush()
process.exit(0)
})
More in Node.js, including every lumber.config() option and mirroring logs to your console during development.
Read your logs
Open the Lumber app to see your logs, decrypted on your device. On plans with realtime streaming (Dev and up), new logs appear as they arrive. You can also read them in your terminal with the lumber command, and hand them to an AI agent (see AI Agents).
Next steps
- Node.js, Python, Go, Java, Kotlin, C# and PHP: each client's levels, data, options and delivery
- Command Line: your logs in the terminal, searched and followed live
- AI Agents: your logs for Claude and other agents over MCP
- API Keys: the encryption key they carry, and sharing apps with your team
- Encryption: what Lumber encrypts, the algorithms, and what its servers can see
- HTTP API: sending logs from any other language