Struct slog_scope::GlobalLoggerGuard
source · pub struct GlobalLoggerGuard { /* private fields */ }
Expand description
Guard resetting global logger
On drop it will reset global logger to slog::Discard
.
This will drop
any existing global logger.
Implementations§
source§impl GlobalLoggerGuard
impl GlobalLoggerGuard
sourcepub fn cancel_reset(self)
pub fn cancel_reset(self)
Cancel resetting global logger