[−][src]Function loggest::init
pub fn init<P>(
level: LevelFilter,
base_filename: P
) -> Result<FlushGuard, LoggestError> where
P: Into<PathBuf>,
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(), "/var/log/my_app").unwrap();