folly::LogWriter

Writes serialized log messages to an output.

Synopsis

Declared in <folly/logging/LogWriter.h>

class LogWriter;

Enums

NameDescription
Flags Bit flag values for use with writeMessage()

Member Functions

NameDescription
~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.

Derived Classes

NameDescription
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.