Function console_log::init_with_level
source · pub fn init_with_level(level: Level) -> Result<(), SetLoggerError>
Expand description
Initializes the global logger setting max_log_level
to the given value.
Example
use log::Level;
fn main() {
console_log::init_with_level(Level::Debug).expect("error initializing logger");
}