pub fn init_from_env<T: AsRef<str>>(envar: T)Expand description
Use the value of the given environment variable as the log level.
Examples found in repository?
examples/simple.rs (line 5)
4fn main() {
5 badlog::init_from_env("LOG_LEVEL");
6
7 trace!("Unimportant details.");
8 debug!("Debugging information.");
9 info!("Hello, World!");
10
11 surgery::complicated_procedure();
12
13 warn!("Uh, captain, I think we're going down...");
14 error!("IT'S THE END.");
15}