mixin_logger 0.1.2 copy "mixin_logger: ^0.1.2" to clipboard
mixin_logger: ^0.1.2 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

11
likes
160
points
1.55k
downloads

Publisher

verified publishermixin.dev

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

ansicolor, ffi, flutter, path

More

Packages that depend on mixin_logger