Quick Start

Get GrenLogger running in your application in under 5 minutes.

1

Create an Account

Sign up for a free GrenLogger account to get your API key and project ID.

Create Free Account
2

Install the SDK

Choose your platform and install the SDK:

iOS (Swift Package Manager)
https://github.com/grendowdev/grenlogger-ios
Android (Gradle)
implementation("app.grenlogger:sdk:1.0.0")
3

Initialize the SDK

Initialize GrenLogger once at app startup with your credentials:

JavaScript / TypeScript
import { GrenLogger } from '@grenlogger/sdk';

GrenLogger.initialize({
  apiKey: 'YOUR_API_KEY',
  userId: 'user-123',  // optional, required for remote activation
  remote: true,   // false = privacy mode, enable via dashboard
  local: true,    // false = disable local console output
});
4

Start Logging

Use the logging methods anywhere in your application:

// Log levels
GrenLogger.debug('Debug message');
GrenLogger.info('User logged in', { method: 'google' });
GrenLogger.warning('Low memory detected');
GrenLogger.error('Payment failed', { code: 'CARD_DECLINED' });
GrenLogger.fatal('Critical error', {}, new Error('Something went wrong'));

// Update user ID after login
GrenLogger.setUserId('user-456');

// Flush logs before app exit
GrenLogger.flush();