pub fn init(level: Option<Level>)
Expand description
Initialize the logger.
There are two sources for log level configuration:
- The log level value passed to this function
- The user can set the
RUST_LOG
env var, which overrides the log level passed to this function.
The config file only accepts a log level, while the RUST_LOG
variable
supports the full env_logger
syntax, including filtering by crate and
module.