flutter_easylogger

Creator: coderz1093

Last updated:

Add to Cart

Description:

flutter easylogger

Language: English | 中文简体
flutter_logger #

Simple, pretty and powerful logger for flutter,It has the log level, file name and line number, and can customize the color of the log level,It was inspired by logger
,Color not supported on ios。
It can be printed on the phone, and logs can be filtered

Download #
flutter_easylogger: ^{LAST_VERSION}
copied to clipboard
Usage #
Logger.d("hello");
copied to clipboard
Output #

Options #
no tag
Logger.v("hello world");
Logger.d("hello world");
Logger.i("hello world");
Logger.w("hello world");
Logger.e("hello world");
var json = "{\"name\":\"tom\",\"age\":\"18\"}";
Logger.json(json);
copied to clipboard
with tag
Logger.e("hello",tag:"TAG");
copied to clipboard

Json support (output will be in debug level)
Logger.json(json);
copied to clipboard
jumps to the printed file details page #

Advanced #
Logger.init(
true,// isEnable ,if production ,please false
isShowFile: true, // In the IDE, whether the file name is displayed
isShowTime: true, // In the IDE, whether the time is displayed
isShowNavigation: true, // In the IDE, When clicked, it jumps to the printed file details page
levelVerbose: 247, // In the IDE, Set the color
levelDebug: 26,
levelInfo: 28,
levelWarn: 3,
levelError: 9,
phoneVerbose: Colors.white54, // In your phone or web,, Set the color
phoneDebug: Colors.blue,
phoneInfo: Colors.green,
phoneWarn: Colors.yellow,
phoneError: Colors.redAccent,
);
copied to clipboard
You can change the color of level, and the value is in the range of 0-255. Please refer to the picture below for details

print on the phone #
Logs can be printed on the phone or filtered by log level or keyword

ConsoleOverlay.show(context);
copied to clipboard
Note #
Turn off logging when production
Logger.init(false);
copied to clipboard



IOS
IOS
Android
Web




ide color
no
yes
yes


phone color
yes
yes
yes

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.