StandardLogHandler is a LogHandler implementation that uses a LogFormatter class to serialize the LogMessage into a string, and then gives it to a LogWriter object.
Synopsis
Declared in <folly/logging/StandardLogHandler.h>
class StandardLogHandler
: public LogHandler
Description
This basically is a simple glue class that helps chain together configurable LogFormatter and LogWriter objects.
StandardLogHandler also supports ignoring messages less than a specific LogLevel. By default it processes all messages.
Base Classes
Name |
Description |
Consumes and processes log messages. |
Member Functions
Name |
Description |
|
Constructs a handler from a formatter and writer. |
|
Destroys the handler. |
|
Flushes any buffered output. |
|
Returns the handler's current configuration. |
Get the LogFormatter used by this handler. |
|
Get the handler's current LogLevel. |
|
Get the LogWriter used by this handler. |
|
|
Formats and writes a log message. |
Set the handler's current LogLevel. |
Created with MrDocs