LogStreamProcessor receives a LogStream and logs it.
Declared in <folly/logging/LogStreamProcessor.h>
class LogStreamProcessor;
This class is primarily intended to be used through the FB_LOG*() macros. Its API is designed to support these macros, and is not designed for other use.
The operator&() method is used to trigger the logging. This operator is used because it has lower precedence than <<, but higher precedence than the ? ternary operator, allowing it to bind with the correct precedence in the log macro implementations.
| Name | Description |
|---|---|
AppendType | Tag type selecting the append constructor overloads. |
FormatType | Tag type selecting the format-string constructor overloads. |
| Name | Description |
|---|---|
LogStreamProcessor [constructor] | Constructors |
~LogStreamProcessor [destructor] | Logs the accumulated message and destroys the processor. |
logNow | Immediately logs the accumulated message. |
operator& | Bitwise conjunction operators |
stream | Returns the underlying output stream for the log message. |