[][src]Function femme::start

pub fn start(filter: LevelFilter) -> Result<(), SetLoggerError>

Starts logging depending on current environment. If in production, will print ndjson, otherwise pretty-prints.

Examples

femme::start(log::LevelFilter::Trace).unwrap();
log::warn!("Unauthorized access attempt on /login");
log::info!("Listening on port 8080");