Function log::set_logger[src]

pub fn set_logger(logger: Box<Logger + Send>) -> Option<Box<Logger + Send>>

Replaces the task-local logger with the specified logger, returning the old logger.