Crate slog_atomic[][src]

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.