[][src]Function log::shutdown_logger

pub fn shutdown_logger() -> Result<Box<dyn Log>, ShutdownLoggerError>

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. Once the global logger has been shut down, it can no longer be re-initialized by set_logger. Any log events that occur after the call to shutdown_logger completes will be ignored.

The logger that was originally created by the call to to set_logger is returned on success. At that point it is guaranteed that no other threads are concurrently accessing the logger object.