Skip to content

Files

This branch is 2 commits ahead of, 31 commits behind MixinNetwork/flutter-plugins:main.

mixin_logger

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 19, 2024
Feb 8, 2024
Oct 20, 2023
Feb 8, 2024
Oct 20, 2023
Oct 20, 2023
Oct 20, 2023
Oct 20, 2023
Oct 20, 2023
May 26, 2022
Nov 24, 2023
Nov 24, 2023
May 26, 2022
Aug 26, 2022
May 26, 2022
Oct 20, 2023
Nov 24, 2023

mixin_logger

Simple logger tool for flutter.

Features

Print log

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