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
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 appfinal log = Logger('MyApp');log.info('User opened settings');log.severe('Failed to load profile');log.warning('Slow API response');// Set user for Log SwitchLogmonitor.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
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.
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.
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.
Yes. LogMonitor complements Firebase Crashlytics by providing real-time log streaming and structured context. Use LogMonitor for live debugging and Crashlytics for crash aggregation.
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.