pub fn init<P>(
level: LevelFilter,
base_filename: P,
) -> Result<FlushGuard, LoggestError>Expand description
Initialize loggest. Must only be called once.
The base_filename argument is used as the name for the main thread. Other threads append .<thread_id>.
ยงExample
loggest::init(log::LevelFilter::max(), env!("CARGO_PKG_NAME")).unwrap();