Function init

Source
pub(crate) fn init<P, L>(
    log_path: Option<P>,
    filter: L,
    with_stdout: bool,
) -> Result<()>
where P: AsRef<Path>, L: Into<Level>,
Expand description

Initialize loggers globally.

§Note

  • This will live until the end of the program.

§Panics

Panics if called twice.