Oleqlog

Installation

Install and initialize oleq_logs for Flutter and Dart

Package: oleq_logs on pub.dev.

Official ingest client for Flutter (iOS / Android) and Dart VM apps.

App name required

Create an app under Apps in the dashboard. Pass the same string as appName when constructing OleqLog.

1. Install the package

flutter pub add oleq_logs

Or in pubspec.yaml:

dependencies:
  oleq_logs: ^0.0.7

2. Create an API key

  1. Sign in with GitHub and create an org if needed.
  2. Open AppsCreate app (this name becomes appName).
  3. Open API KeysGenerate New Key. Copy the secret once (sk_live_…).

3. Set the API key

Prefer compile-time defines for mobile builds, or set the env var for Dart VM / CI:

flutter run --dart-define=OLEQLOG_API_KEY=sk_live_…
# or:
export OLEQLOG_API_KEY=sk_live_…

4. Initialize the client

import 'package:oleq_logs/oleq_logs.dart';

final log = OleqLog(LoggerConfig(
  appName: 'my-mobile-app', // required — same as Apps
  environment: 'production',
));

That is enough when OLEQLOG_API_KEY is set. Pass options when you need to override:

final log = OleqLog(LoggerConfig(
  appName: 'my-mobile-app',
  apiKey: 'sk_live_…', // optional if env / dart-define is set
  baseUrl: 'http://localhost:3000', // local / custom API
  environment: 'production',
));

Next: Usage

On this page