[][src]Function loggest::init

pub fn init<P: Into<PathBuf>>(
    level: LevelFilter,
    base_filename: P
) -> Result<(), LoggestError>

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();