|
VLink
2.3.0
A high-performance communication middleware
|
RAII helper backing SLOG_*; collects tokens and flushes on destruction.
More...
#include <logger.h>
Public Member Functions | |
| WrapperStream (Logger::NoDetail) noexcept | |
| WrapperStream (DetailInfo &&detail) noexcept | |
| WrapperStream (WrapperStream &&other) noexcept=default | |
| WrapperStream & | operator= (WrapperStream &&)=delete |
| ~WrapperStream () noexcept(LevelT !=Level::kFatal) | |
| template<typename T > | |
| WrapperStream & | operator<< (T &&t) noexcept |
| operator bool () const noexcept | |
| Reports whether this stream accepted the record. More... | |
Static Public Attributes | |
| static constexpr bool | kIsEnabled = (LevelT >= kMinimumLevel && LevelT < Logger::kOff) |
RAII helper backing SLOG_*; collects tokens and flushes on destruction.
When kIsEnabled is false at the chosen level the type and its methods compile to nothing, so disabled-level call sites have zero runtime overhead.
| LevelT | Compile-time severity level. |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
Reports whether this stream accepted the record.
true when the runtime level gate passed.
|
inlinenoexcept |
|
delete |
|
staticconstexpr |