Crate slog_atomic [] [src]

Slog atomic switching drain

Using AtomicSwitch it's possible to change drain hierarchy behavior atomically, race-free, in runtime, which can be useful eg. for turning debugging logging in production.

See slog signal.rs example

Structs

AtomicSwitch

Drain allowing atomically switching a sub-drain in runtime

AtomicSwitchCtrl

Handle to AtomicSwitch allowing switching it's sub-drain