One Line Logger
A simple, zero-config remote logging utility for Flutter. Add analytics and logging to your app with a single line of code.
Why One Line Logger
- Instant Setup: No complex initialization. Just drop it in and log.
- Analytics: App Version, OS, Device Model, Country, and Usage Data.
- Monitor Anywhere: Access your logs via our Web Dashboard or Android App.
- Lightweight: Minimal impact on your app's performance and size.
Plan Comparison
Start with a free plan, subscribe if you need additional features.
| Feature | Free | Pro |
|---|---|---|
| One-Line Remote Logging | ✅ | ✅ |
| Full Device Metadata | ✅ | ✅ |
| Usage & Session Tracking | ✅ | ✅ |
| Send Custom Debug & Error Messages | ✅ | ✅ |
| Web & Android Dashboards (iOS coming soon) | ✅ | ✅ |
| Monitor Multiple Apps On One Dashboard | ❌ | ✅ |
| Private Log Data | ❌ | ✅ |
| Instant Push Notifications | ❌ | ✅ |
Getting Started
First, add one_line_logger as a dependency in your pubspec.yaml file.
flutter pub add one_line_logger
Example
Next, import 'one_line_logger.dart' into your Dart code.
import 'package:one_line_logger/one_line_logger.dart';
// Initialise the logger. User stats are logged automatically!
final logger = OneLineLogger();
// Log custom messages
logger.error('Error message $e');
logger.debug('User purchased item: $item');
Web Requirement
For web apps, add your App ID to index.html
<meta name="app-id" content="com.domain.app_name">
Important Notes
For simplicity, logs are public by default and can be accessed by entering your App ID on the dashboard. Ensure no sensitive data is logged, or subscribe to enable data privacy.
Libraries
- one_line_logger
- Sends application events to the OneLineLogger dashboard.
- web_utils_stub
- Platform-neutral web metadata helpers for OneLineLogger.
- web_utils_web
- Web metadata helpers for OneLineLogger.