Skip to main content

try_init

Function try_init 

Source
pub fn try_init(config: Config) -> Result<(), SetLoggerError>
Expand description

Attempt to initialize the logger with the given config.

ยงErrors

This function will fail if it is called more than once, or if another library has already initialized a global logger.