Extend this abstract class to create your own log layout format. More...
#include <Layout.hh>
Public Member Functions | |
virtual std::string | format (const LoggingEvent &event)=0 |
Formats the LoggingEvent data to a string that appenders can log. | |
virtual | ~Layout () |
Destructor for Layout. |
Extend this abstract class to create your own log layout format.
virtual Layout::~Layout | ( | ) | [inline, virtual] |
virtual std::string Layout::format | ( | const LoggingEvent & | event | ) | [pure virtual] |
Formats the LoggingEvent data to a string that appenders can log.
Implement this method to create your own layout format.
event | The LoggingEvent. |
Implemented in PatternLayout, BasicLayout, SimpleLayout, and PassThroughLayout.