Skip to main content

Flutter Log Monitoring with LogMonitor

>_ why flutter apps need log monitoring

Flutter apps run on user devices where you have zero visibility into what goes wrong. Crash reports alone do not tell the full story: you need the sequence of events that led to the crash. LogMonitor streams logs from every Flutter app instance to your Live Console so you can debug production issues as if the device were in your hand.

>_ how logmonitor works with flutter

Add the logmonitor_flutter package from pub.dev to your project and call Logmonitor.init() in your main function. The SDK integrates with the package:logging library to stream logs to your LogMonitor dashboard in real time. Use Log Switch to enable verbose logging for specific users without redeploying. Logs are only sent in release mode.

>_ quick start

main.dart · dart
import 'package:flutter/material.dart';
import 'package:logmonitor_flutter/logmonitor_flutter.dart';
import 'package:logging/logging.dart';
void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Logmonitor.init(apiKey: 'your-api-key');
  runApp(const MyApp());
}
// Anywhere in your Flutter app
final log = Logger('MyApp');
log.info('User opened settings');
log.severe('Failed to load profile');
log.warning('Slow API response');
// Set user for Log Switch
Logmonitor.setUser(userId: 'user-123');

>_ what you can monitor

  • $Runtime exceptions and crashes on iOS and Android
  • $API call failures and slow network responses
  • $Navigation events and screen transitions
  • $State management errors
  • $Platform-specific issues (permissions, storage, sensors)
  • $User interaction logs for debugging

>_ frequently asked questions

$ Does the Flutter SDK work on both iOS and Android?

Yes. The logmonitor_flutter SDK is a pure Dart package that works on iOS, Android, web, macOS, Windows, and Linux. Anywhere Flutter runs, LogMonitor works.

$ What is Log Switch and how does it work with Flutter?

Log Switch lets you enable or disable verbose logging for a specific user from the LogMonitor dashboard. This means you can turn on detailed debug logs for a user who reports a bug, without pushing an app update or affecting other users.

$ Does the SDK impact app performance or battery life?

No. The SDK uses efficient batching and asynchronous transport. Logs are queued in memory and sent in batches, so there is no noticeable impact on UI performance or battery consumption.

$ Can I use LogMonitor with Flutter and Firebase together?

Yes. LogMonitor complements Firebase Crashlytics by providing real-time log streaming and structured context. Use LogMonitor for live debugging and Crashlytics for crash aggregation.

$ How do I install the Flutter SDK?

Add logmonitor_flutter and logging to your pubspec.yaml dependencies and run flutter pub get. Then add await Logmonitor.init(apiKey: 'your-api-key') in your main function. Setup takes under five minutes.

>_ related pages

>_ about logmonitor

LogMonitor.io is a log observability platform built for developers who want simple, fast, affordable log monitoring without enterprise complexity. Stream production logs from your users' devices in real-time with native Flutter and React SDKs. Set up in under 5 minutes, with plans starting at $9/month. No dashboards to configure, no query languages to learn — just your logs, live.

logmonitor --start
Ready to see your production logs in real-time?
Start Monitoring →

Plans from $9/mo · Set up in under 5 minutes