Writes serialized log messages to an output.
Declared in <folly/logging/LogWriter.h>
class LogWriter;
| Name | Description |
|---|---|
Flags | Bit flag values for use with writeMessage() |
| Name | Description |
|---|---|
~LogWriter [destructor] [virtual] | Destroys the writer. |
flush [virtual] | Block until all messages that have already been sent to this LogWriter have been written. |
ttyOutput [virtual] | Is the log writer writing to a tty or not. |
writeMessage | writeMessage overloads |
writeMessageSync [virtual] | Write a message synchronously. |
| Name | Description |
|---|---|
AsyncLogWriter | An abstract LogWriter implementation that provides functionality for asynchronous IO operations. Users can subclass this class and provide their own IO operation implementation by overriding performIO method. This class will automatically manage incoming log messages and call the method in appropriate time. |
ImmediateFileWriter | A LogWriter implementation that immediately writes to a file descriptor when it is invoked. |