#include <Formatter.h>
Inheritance diagram for activemq::logger::Formatter:
Public Member Functions | |
virtual | ~Formatter (void) |
virtual std::string | format (const LogRecord &record) const =0 |
virtual std::string | formatMessage (const LogRecord &record) const =0 |
virtual std::string | getHead (const Handler *handler)=0 |
virtual std::string | getTail (const Handler *handler)=0 |
Typically each logging Handler will have a Formatter associated with it. The Formatter takes a LogRecord and converts it to a string.
Some formatters (such as the XMLFormatter) need to wrap head and tail strings around a set of formatted records. The getHeader and getTail methods can be used to obtain these strings.
|
|
|
Format the given log record and return the formatted string.
Implemented in activemq::logger::SimpleFormatter. |
|
Format the message string from a log record.
Implemented in activemq::logger::SimpleFormatter. |
|
Return the header string for a set of formatted records. In the default implementation this method should return empty string
Implemented in activemq::logger::SimpleFormatter. |
|
Return the tail string for a set of formatted records. In the default implementation this method should return empty string
Implemented in activemq::logger::SimpleFormatter. |