Function log::set_logger
[−]
[src]
pub fn set_logger(logger: Box<Logger + Send>) -> Option<Box<Logger + Send>>
🔬 This is a nightly-only experimental API. (rustc_private
)
use the crates.io log
library instead
Replaces the thread-local logger with the specified logger, returning the old logger.