I want to set the tracing Level using a String (because I get the Level from an env var).
let env_log_level = std::env::var("LOG_LEVEL").unwrap();
tracing_subscriber::fmt()
.with_max_level(tracing::Level::DEBUG) // somehow use env_log_level here
.with_target(false)
.init();
I guess it should be a way to parse a String into a Level object but I don't see how.