flutter_logcat 1.1.2
flutter_logcat: ^1.1.2 copied to clipboard
you can distribute check Log on Flutter's console. very simple usage!
#
when you click likeπ this library, I am very very gratulation.
when you click githubπΊ follow, I am very very very happy.
when you click starβ my repository, I am realy realy energized
π toolπ€ usefulπ simpleπ easyπ likeπ
π struct #
flutter_logcat
need only three parameters there are message
, tag
, path
message
: if yon want input message to watch on console.tag
: this is when you define something tag name.path
: if you define true, you can watch file preference path. (default: false)
π console print #
message | tag | path | output |
---|---|---|---|
βοΈ | β | β | [className:lineNumber] message |
βοΈ | βοΈ | β | (tag) [className:lineNumber] message |
βοΈ | β | βοΈ | [className(packageName/className.dart):lineNumber] message |
βοΈ | βοΈ | βοΈ | (tag) [className(packageName/className.dart):lineNumber] message |
π usage #
- control visibleπ to Log.
import 'package:flutter/foundation.dart';
Log.configure(visible: kDebugMode);
- only message
Log.v("message");
Log.i("message");
Log.d("message");
Log.w("message");
Log.e("message");
[_ExampleScreenState:30] message
- 'path' parameter put true
Log.v("message", path: true);
Log.i("message", path: true);
Log.d("message", path: true);
Log.w("message", path: true);
Log.e("message", path: true);
[_ExampleScreenState(example/main.dart):35] message
- 'tag' parameter (type - String)
Log.v("message", tag: "donguran");
Log.i("message", tag: "donguran");
Log.d("message", tag: "donguran");
Log.w("message", tag: "donguran");
Log.e("message", tag: "donguran");
(donguran) [_ExampleScreenState(example/main.dart):48] message