LogFormatter defines the interface for serializing a LogMessage object into a buffer to be given to a LogWriter.

Synopsis

Declared in <folly/logging/LogFormatter.h>

class LogFormatter;

Member Functions

Name

Description

~LogFormatter [destructor] [virtual]

Destroys the formatter.

formatMessage [virtual]

Serialze a LogMessage object.

Derived Classes

Name

Description

CustomLogFormatter

A LogFormatter implementation that produces messages in a format specified using a config.

GlogStyleFormatter

A LogFormatter implementation that produces messages in a format similar to that produced by the Google logging library.

Created with MrDocs