Skip to content

More options for init macro

Latest
Compare
Choose a tag to compare
@MnlPhlp MnlPhlp released this 07 Feb 10:17
· 6 commits to main since this release
0c1c189

Added some optional arguments to the init macro.
Only one macro call can be active in a crate because of conflicting implementations.

  • default:
    flutter_logger::flutter_logger_init!();
  • sepcify level
    flutter_logger::flutter_logger_init!(LeveFilter::Trace);
  • sepcify name
    flutter_logger::flutter_logger_init!(logger_init);
  • sepcify both
    flutter_logger::flutter_logger_init!(info_logger, LevelFilter::Info);