acquire_logging_api_handler

Function acquire_logging_api_handler 

Source
pub fn acquire_logging_api_handler() -> Option<LoggingAPIHandler>
Expand description

Acquires the logging API handler.

This function is mutable, and consumes the handler if it’s present. This means it should only be called once, and only after logging has been initialized via initialize_dynamic_logging.

The logging API handler can be used to install API routes which allow dynamically controlling the logging level filtering. See LoggingAPIHandler for more information.