flutter_easylogger 1.0.2 flutter_easylogger: ^1.0.2 copied to clipboard
Simple, pretty and powerful logger for flutter.
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
Download #
flutter_easylogger: ^1.0.2
Usage #
Logger.d("hello");
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);
with tag
Logger.d("hello",tag:"TAG");
Json support (output will be in debug level)
Logger.json(json);
Advanced #
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
Logger.levelVerbose = 247;
Logger.levelDebug = 26;
Logger.levelInfo = 28;
Logger.levelWarn = 3;
Logger.levelError = 9;
Note #
Turn off logging when production
Logger.enable = false;