Function log::shutdown_logger_raw [] [src]

pub fn shutdown_logger_raw() -> Result<*const LogShutdownLoggerError>

Shuts down the global logger.

This function may only be called once in the lifetime of a program, and may not be called before set_logger_raw. Once the global logger has been shut down, it can no longer be re-initialized by set_logger_raw. Any log events that occur after the call to shutdown_logger_raw completes will be ignored.

The pointer that was originally passed to set_logger_raw is returned on success. At that point it is guaranteed that no other threads are concurrently accessing the logger object.

This function should not be called when the global logger was registered using set_logger, since in that case the logger will automatically be shut down when the program exits