pub fn start()
Expand description
Starts logging depending on current environment.
Always logs with ‘Info’ LevelFilter. For other filters use with_level.
§Log output
- when compiling with
--release
uses ndjson. - pretty-prints otherwise.
- works in WASM out of the box.
§Examples
femme::start();
log::warn!("Unauthorized access attempt on /login");
log::info!("Listening on port 8080");