Crate slog_atomic [] [src]

Slog atomic switching 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 slog signal.rs example

Structs

AtomicSwitch

Drain wrapping another drain, allowing atomic substitution in runtime

AtomicSwitchCtrl

Handle to AtomicSwitch that controls it.