Function sc_telemetry::with_logger[][src]

pub fn with_logger<F, R>(f: F) -> R where
    F: FnOnce(&Logger<Arc<dyn SendSyncRefUnwindSafeDrain<Err = NeverStruct, Ok = ()> + 'static>>) -> R, 

Access the Logger for the current logging scope

This function doesn’t have to clone the Logger so it might be a bit faster.