[][src]Function spirit_log::install

pub fn install(logger: Dispatch)

Replace the current logger with the provided one.

This can be called multiple times (unlike Dispatch::apply) and it always replaces the old logger with a new one.

The logger will be installed in a synchronous way ‒ a call to logging functions may block.

Panics

If init haven't been called yet.