[−][src]Function femme::start
pub fn start(filter: LevelFilter) -> Result<(), SetLoggerError>
Starts logging depending on current environment.
Log output
- when compiling with
--release
uses ndjson. - pretty-prints otherwise.
- works in WASM out of the box.
Examples
femme::start(log::LevelFilter::Trace).unwrap(); log::warn!("Unauthorized access attempt on /login"); log::info!("Listening on port 8080");