I’m trying to switch from env_logger to log4rs in a project.
I’ve added the dependency to log4rs in my Cargo.toml.
When I call the log4rs initializer (log4rs::init_file) from main I get the following:
thread ‘’ panicked at ‘called
Result::unwrap() on an
Err value: Log4rs(StringError(“the
toml feature is required for TOML support”))’, …/src/libcore/result.rs:688
due to this in log4rs:
#[cfg(not(feature = “toml”))]
Some(“toml”) => Err(“the
toml feature is required for TOML support”.into()),
Not sure what step I’m missing. Any hints appreciated.