|
VLink 2.0.0
A high-performance communication middleware
|
RAII stream wrapper that accumulates tokens and flushes on destruction. 更多...
#include <logger.h>
Public 成员函数 | |
| WrapperStream (Logger::NoDetail) noexcept | |
| WrapperStream (DetailInfo &&detail) noexcept | |
| WrapperStream (WrapperStream &&other) noexcept | |
| WrapperStream & | operator= (WrapperStream &&)=delete |
| ~WrapperStream () | |
| template<typename T> | |
| WrapperStream & | operator<< (T &&t) noexcept |
静态 Public 属性 | |
| static constexpr bool | kIsEnabled = (LevelT >= kMinimumLevel && LevelT < Logger::kOff) |
| Indicates whether this level is enabled at compile time. | |
RAII stream wrapper that accumulates tokens and flushes on destruction.
Used by the SLOG_* macros to allow natural << chaining. The message is emitted when the temporary WrapperStream object goes out of scope. If the log level is disabled at compile time (kIsEnabled == false), all methods are compiled away and the object has zero runtime cost.
| LevelT | Compile-time log level. |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
delete |
|
staticconstexpr |
Indicates whether this level is enabled at compile time.
If false, all operator<< calls and the destructor flush are no-ops.