Function init_logger

Source
pub fn init_logger()
Expand description

Set up app-logging as appropriate for the environment, then run the provided function.

If stdout is a terminal, write to stderr. Otherwise, write to the system logger.

ยงPanics

This function will panic if it fails to initialize the appropriate logger or a global logger has already been initialized.