flutter_easylogger 1.0.2 copy "flutter_easylogger: ^1.0.2" to clipboard
flutter_easylogger: ^1.0.2 copied to clipboard

outdated

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;
9
likes
0
pub points
86%
popularity

Publisher

unverified uploader

Simple, pretty and powerful logger for flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_easylogger