proxygen
|
#include <LogFormatter.h>
Public Member Functions | |
virtual | ~LogFormatter () |
virtual std::string | formatMessage (const LogMessage &message, const LogCategory *handlerCategory)=0 |
LogFormatter defines the interface for serializing a LogMessage object into a buffer to be given to a LogWriter.
Definition at line 29 of file LogFormatter.h.
|
inlinevirtual |
|
pure virtual |
Serialze a LogMessage object.
message | The LogMessage object to serialze. |
handlerCategory | The LogCategory that is currently handling this message. Note that this is likely different from the LogCategory where the message was originally logged, which can be accessed as message->getCategory() |
Implemented in folly::GlogStyleFormatter, and folly::CustomLogFormatter.
Referenced by ~LogFormatter().