Installs sink for the lifetime of the object and restores the previous sink after. More...
#include <log_sink.hpp>
Public Member Functions | |
| ScopedLogSink (LogSink sink) | |
| ~ScopedLogSink () | |
| ScopedLogSink (const ScopedLogSink &)=delete | |
| ScopedLogSink & | operator= (const ScopedLogSink &)=delete |
Installs sink for the lifetime of the object and restores the previous sink after.
Not nestable across threads: another thread installing a sink in between is overwritten on destruction.
|
inlineexplicit |
|
inline |
|
delete |
|
delete |