Convenience object used to facilitate use of C++ stream syntax when logging messages. Order of base classes is LogStreamConsumerBase and then std::ostream. This is because the LogStreamConsumerBase class is used to initialize the LogStreamConsumerBuffer member field in LogStreamConsumer and then the address of the buffer is passed to std::ostream. This is necessary to prevent the address of an uninitialized buffer from being passed to std::ostream. Please do not change the order of the parent classes.
More...
Convenience object used to facilitate use of C++ stream syntax when logging messages. Order of base classes is LogStreamConsumerBase and then std::ostream. This is because the LogStreamConsumerBase class is used to initialize the LogStreamConsumerBuffer member field in LogStreamConsumer and then the address of the buffer is passed to std::ostream. This is necessary to prevent the address of an uninitialized buffer from being passed to std::ostream. Please do not change the order of the parent classes.
◆ LogStreamConsumer() [1/2]
sample::LogStreamConsumer::LogStreamConsumer |
( |
Severity |
reportableSeverity, |
|
|
Severity |
severity |
|
) |
| |
|
inline |
Creates a LogStreamConsumer which logs messages with level severity.
Reportable severity determines if the messages are severe enough to be logged.
◆ LogStreamConsumer() [2/2]
◆ setReportableSeverity()
void sample::LogStreamConsumer::setReportableSeverity |
( |
Severity |
reportableSeverity | ) |
|
|
inline |
◆ severityOstream()
static std::ostream& sample::LogStreamConsumer::severityOstream |
( |
Severity |
severity | ) |
|
|
inlinestaticprivate |
◆ severityPrefix()
static std::string sample::LogStreamConsumer::severityPrefix |
( |
Severity |
severity | ) |
|
|
inlinestaticprivate |
◆ mShouldLog
bool sample::LogStreamConsumer::mShouldLog |
|
private |
◆ mSeverity
Severity sample::LogStreamConsumer::mSeverity |
|
private |
◆ mBuffer
The documentation for this class was generated from the following file: