A 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: ^{LAST_VERSION}
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
Logger.levelVerbose = 247;
Logger.levelDebug = 26;
Logger.levelInfo = 28;
Logger.levelWarn = 3;
Logger.levelError = 9;
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
Note
Turn off logging when production
Logger.enable = false;