Skip to main content

try_init_logger

Function try_init_logger 

Source
pub fn try_init_logger() -> Result<(), &'static str>
Expand description

Try to initialize the logger with default filter (info).

Returns Ok(()) if initialization succeeded, or Err(&str) if the logger has already been initialized.