[][src]Function belog::init_with_level

pub fn init_with_level(level: Level)

Initializes the logger with the given level, but panics if it fails to set the logger.

Example

belog::init_with_level(log::Level::Info);

info!("Some info here");
debug!("Some debug message here");