android_util_log

A utility library for Android log. Built with dart's experimental jni

Important

This package is currently experimental and may change in non-breaking ways in the future. version 0.X.X still in development and may not ready for production use.

Usage

API Documentation

Add package

  • run in command line
flutter pub add android_util_log
  • or add to pubspec.yaml
...
dependencies:
  android_util_log: any
...

Start log

import 'package:android_util_log/android_util_log.dart';

Log.i("TAG", "I'M A MESSAGE");
Log.e("TAG", "I'M A MESSAGE");
Log.w("TAG", "I'M A MESSAGE");

Development

you should build apk first then run jnigen

cd example
flutter build apk
cd ..
flutter pub run jnigen --config jnigen.yaml

License

  • package is under MIT license