flutter_native_log_handler

Creator: coderz1093

Last updated:

Add to Cart

Description:

flutter native log handler

flutter_native_log_handler #
Listen to Android and iOS logs.


Motivation #
We had the case where we want to send all app logs to a logging backend. You can easily capture Flutter logs with Dart's zones feature. But what about Android's Logcat logs from native plugins and Android itself? Or iOS native logs? This package gives you the ability to listen to those logs messages and handle them as you like (I wouldn't print them, because infinite loops are usually a bad thing 😉).
Installation #
As simple as dart pub add flutter_native_log_handler.
Or manually add flutter_native_log_handler: ^0.1.2 to your pubspec.yaml.
Usage #
StreamSubscription<NativeLogMessage> subscription =
FlutterNativeLogs().logStream.listen(
(NativeLogMessage message) =>
doSomethingWithLogMessage(message),
);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.