Crate slog_atomic

Crate slog_atomic 

Source
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ยง

AtomicSwitch
Drain wrapping another drain, allowing atomic substitution in runtime.
AtomicSwitchCtrl
Handle to AtomicSwitch that controls it.