pub fn with_logger<R, F: FnOnce() -> R>(logger: Logger, f: F) -> R
Expand description

Runs a closure in scope of a logger configuration, then free the given logger configuration and return closure result.