# Function log::shutdown_logger [−] [src]

    pub fn shutdown_logger() -> Result<Box<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.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)