Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

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}

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.e("hello",tag:"tag");

json support (output will be in debug level)

logger.json(json);

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,
  );

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

// add overlay
consoleoverlay.show(context);
// remoove
consoleoverlay.remove();

note

turn off logging when production

logger.init(false);
ios ios android web
ide color no yes yes
phone color yes yes yes

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.