just_logcat 0.0.2+3 copy "just_logcat: ^0.0.2+3" to clipboard
just_logcat: ^0.0.2+3 copied to clipboard

Just Logcat

Just Logcat #

Features #

Log.i, Log.d, Log.w, Log.e

Getting started #

flutter pub add just_logcat
flutter pub get

Usage #

Info log

...
import 'package:just_logcat/just_logcat.dart';
...

const tag = 'main.dart';

void main() {
  Log.i(tag, 'Before running MyApp()');
  try {
    ...
  } catch (error, stackTrace) {
    Log.i(tag, 'Error: $error', stackTrace: stackTrace);
  }
  runApp(const MyApp());
  }
}

...

Debug log

...
import 'package:just_logcat/just_logcat.dart';
...

const tag = 'main.dart';

void main() {
  Log.d(tag, 'Before running MyApp()');
  try {
    ...
  } catch (error, stackTrace) {
    Log.d(tag, 'Error: $error', stackTrace: stackTrace);
  }
  runApp(const MyApp());
  }
}

...

Warning log

...
import 'package:just_logcat/just_logcat.dart';
...

const tag = 'main.dart';

void main() {
  Log.w(tag, 'Before running MyApp()');
  try {
    ...
  } catch (error, stackTrace) {
    Log.w(tag, 'Error: $error', stackTrace: stackTrace);
  }
  runApp(const MyApp());
  }
}

...

Error log

...
import 'package:just_logcat/just_logcat.dart';
...

const tag = 'main.dart';

void main() {
  Log.e(tag, 'Before running MyApp()');
  try {
    ...
  } catch (error, stackTrace) {
    Log.e(tag, 'Error: $error', stackTrace: stackTrace);
  }
  runApp(const MyApp());
  }
}

...

Additional information #

Just logcat

0
likes
90
pub points
54%
popularity

Publisher

unverified uploader

Just Logcat

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on just_logcat