9 #ifndef _LOG4CPP_PATTERNLAYOUT_HH 10 #define _LOG4CPP_PATTERNLAYOUT_HH 17 #ifdef LOG4CPP_HAVE_SSTREAM 85 virtual void setConversionPattern(
const std::string& conversionPattern);
88 virtual void setConversionPattern(
const char* conversionPattern);
91 virtual std::string getConversionPattern()
const;
93 virtual void clearConversionPattern();
109 #endif // _LOG4CPP_PATTERNLAYOUT_HH virtual std::string format(const LoggingEvent &event)=0
Formats the LoggingEvent data to a string that appenders can log.
virtual ~PatternComponent()
The top level namespace for all 'Log for C++' types and classes.
PatternLayout is a simple fixed format Layout implementation.
static const char * BASIC_CONVERSION_PATTERN
A conversion pattern equivalent to the BasicLayout.
std::string _conversionPattern
std::vector< PatternComponent * > ComponentVector
Extend this abstract class to create your own log layout format.
static const char * SIMPLE_CONVERSION_PATTERN
A conversion pattern equivalent to the SimpleLayout.
static const char * TTCC_CONVERSION_PATTERN
A conversion pattern equivalent to the TTCCLayout.
static const char * DEFAULT_CONVERSION_PATTERN
The default conversion pattern.
ComponentVector _components