Skip to content
forked from pharshdev/logcat

A Flutter plugin to fetch system messages, stacktraces etc.

License

Notifications You must be signed in to change notification settings

SuaMusica/logcat

 
 

Repository files navigation

logcat

Flutter plugin to get system messages, stack traces etc and show them in app. Can also be used to get the app logs from a remote device with share plugin.

Call Logcat.exec() from anywhere to get logs as a Future String then use it in anyway within your app.

NOTE: This plugin fetches logs only on Android Devices presently.

Installation

Add package to pubspec.yaml

logcat: ^1.0.2

Add Import

import 'package:logcat/logcat.dart';

Use it anywhere

Future<void> _getLogs() async {
    final String logs = await Logcat.execute();
    setState(() {
      // Update your UI
    });
  }

About

A Flutter plugin to fetch system messages, stacktraces etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 31.4%
  • Ruby 30.0%
  • Java 23.7%
  • Objective-C 14.9%