[−][src]Function loggest::init
pub fn init<P>(
level: LevelFilter,
base_filename: P
) -> Result<FlushGuard, LoggestError> where
P: Into<OsString>,
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();