flutter_logcat 1.2.2
flutter_logcat: ^1.2.2 copied to clipboard
you can distribute check Log on Flutter's console. very simple usage!
#
**when you click likeπ this, I will be very very happy:)
π 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 #
-
show only 'message'
#Log.v([String]);
Log.v("message");
Log.i("message");
Log.d("message");
Log.w("message");
Log.e("message");
[_ExampleScreenState:30] message
-
show 'message' & 'path' #
Log.v([String], path: [Boolean])
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
-
show 'message' & 'tag' #
Log.v([String], tag: [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
setting Log's Configure #
- visible
- tag
- time
-
control visibleπ to Log.
Log.configure(visible: [Boolean])
import 'package:flutter/foundation.dart';
Log.configure(visible: kDebugMode);
-
if you want setting default
tag
Log.configure(visible: [Boolean], tag: [String])
Log.configure(visible: kDebugMode, tag: "donguran");
Log.v(...);
Log.i(...);
...
-
if you want to see time this
Log.configure(visible: [Boolean], time: [Boolean])
Log.configure(visible: true, time: true);