Function minifemme::start[][src]

pub fn start(level: LevelFilter, mode: LogMode)
Expand description

Starts logging with a log level and log mode. All messages under the specified log level will statically be filtered out. The logger will use the mode specified. This can’t be changed later. (Except if the program is running in a WASM environment.)

minifemme::start(minifemme::LevelFilter::Info, minifemme::LogMode::Pretty);
log::warn!("Unauthorized access attempt on /login");
log::info!("Listening on port 8080");