mixin_logger 0.0.6 copy "mixin_logger: ^0.0.6" to clipboard
mixin_logger: ^0.0.6 copied to clipboard

Simple logger tool for flutter, make it easy to save your app log to file.

mixin_logger #

Simple logger tool for flutter.

Features #

void main() {
  v('verbose message');
  d('debug message');
  i('info message');
  w('warning message');
  e('error message');
  wtf('wtf message');
}

Save log to file. #

void main() {
  // init logger with dir. then all logs will be saved to this dir.
  await initLogger(
    '/tmp/app_log_files_dir',
    maxFileCount: 10, // max 10 files.
    maxFileLength: 5 * 1024 * 1024, // max to 5 MB for single file.
  );
  i('after initLogger');
}

The folder is created automatically:

pwd
/tmp/app_log_files_dir
cat log_0.log
2022-08-26 12:41:00.623 [I] after initLogger

License #

see LICENSE

9
likes
0
pub points
81%
popularity

Publisher

verified publishermixin.dev

Simple logger tool for flutter, make it easy to save your app log to file.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ansicolor, flutter, path

More

Packages that depend on mixin_logger