Expand description
Slog runtime switchable drain
AtomicSwitch
allows swapping drain that it wraps atomically, race-free, in
runtime. This can be useful eg. for turning on debug logging
in production.
See signal.rs
example.
Structsยง
- Atomic
Switch - Drain wrapping another drain, allowing atomic substitution in runtime.
- Atomic
Switch Ctrl - Handle to
AtomicSwitch
that controls it.