pub fn init_logger(level: LevelFilter) -> Result<(), Error>
Expand description

Initialize the logger with the specified logging level.

The library regularly log messages using the log crate, so this is a utility function for initializing log via the simplelog crate.

If you want to use another logger, you can disable the simplelog feature of this crate.

The default recommended level is LevelFilter::Info.