Developer Documentation

Build with
confidence

Everything you need to integrate Loggy into your application. SDKs, APIs, and guides for every product.

app.js
1 import { CreateLoggy } from '@loggydev/loggy-node';
2
3 const loggy = CreateLoggy({
4 identifier: 'my-app',
5 accessToken: 'your-token',
6 });
7
8 loggy.info('User signed up', { userId: 123 });
9 loggy.warn('Rate limit approaching');
10 loggy.error('Payment failed', { error });
11
✓ Sent

Getting Started with Logging

Integrate Loggy into your application in under 5 minutes with our Node.js SDK.

1Install the SDK

npm install @loggydev/loggy-node

2Initialize Loggy

import { CreateLoggy } from '@loggydev/loggy-node';

const loggy = CreateLoggy({
  identifier: 'my-app',
  accessToken: process.env.LOGGY_TOKEN,
});

3Start Logging

// Log levels
loggy.debug('Debug message');
loggy.info('User signed up', { userId: 123 });
loggy.warn('Rate limit approaching');
loggy.error('Payment failed', { error });

// With tags for filtering
loggy.info('Order placed', {
  orderId: 'ORD-123',
  _tags: ['orders', 'payments']
});

Configuration Options

OptionTypeDescription
identifierstringA name to identify your application
accessTokenstringYour project's access token for remote logging
levelstringMinimum log level: 'debug', 'info', 'warn', 'error'
compactbooleanEnable compact console output
encryptionobjectE2E encryption config (Pro/Team only)

Search Syntax

payment failed

Full-text search

level:error

Filter by log level

userId:123

Search in metadata

tag:payments

Filter by tag

Ready to start logging?

Create your free account and start sending logs in minutes.

Get Started for Free