Skip to main content

register_logger

Function register_logger 

Source
pub fn register_logger(logger: &'static Logger) -> &'static Logger
Expand description

Publish logger under its name so subsequent get_logger calls with that name return THIS reference.

On name collision returns the pre-existing entry (the input logger is NOT inserted). On a full table returns DEFAULT_LOGGER.