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

LogHandler

Consumes and processes log messages.

Member Functions

Name

Description

StandardLogHandler [constructor]

Constructs a handler from a formatter and writer.

~StandardLogHandler [destructor] [virtual]

Destroys the handler.

flush [virtual]

Flushes any buffered output.

getConfig [virtual]

Returns the handler's current configuration.

getFormatter

Get the LogFormatter used by this handler.

getLevel

Get the handler's current LogLevel.

getWriter

Get the LogWriter used by this handler.

handleMessage [virtual]

Formats and writes a log message.

setLevel

Set the handler's current LogLevel.

Created with MrDocs