#include <PatternLayout.hh>
Inheritance diagram for log4cpp::PatternLayout:
Public Member Functions | |
PatternLayout () | |
virtual | ~PatternLayout () |
virtual std::string | format (const LoggingEvent &event) |
Formats the LoggingEvent in the style set by the setConversionPattern call. | |
virtual void | setConversionPattern (const std::string &conversionPattern) throw (ConfigureFailure) |
Sets the format of log lines handled by this PatternLayout. | |
virtual std::string | getConversionPattern () const |
virtual void | clearConversionPattern () |
Static Public Attributes | |
const char * | DEFAULT_CONVERSION_PATTERN = "%m%n" |
The default conversion pattern. | |
const char * | SIMPLE_CONVERSION_PATTERN = "%p - %m%n" |
A conversion pattern equivalent to the SimpleLayout. | |
const char * | BASIC_CONVERSION_PATTERN = "%R %p %c %x: %m%n" |
A conversion pattern equivalent to the BasicLayout. | |
const char * | TTCC_CONVERSION_PATTERN = "%r [%t] %p %c %x - %m%n" |
A conversion pattern equivalent to the TTCCLayout. |
|
|
|
|
|
|
|
Formats the LoggingEvent in the style set by the setConversionPattern call. By default, set to "%%m%%n" Implements log4cpp::Layout. |
|
|
|
Sets the format of log lines handled by this PatternLayout.
By default, set to "%%m%%n".
|
|
A conversion pattern equivalent to the BasicLayout.
|
|
The default conversion pattern.
|
|
A conversion pattern equivalent to the SimpleLayout.
|
|
A conversion pattern equivalent to the TTCCLayout. Note: TTCCLayout is in log4j but not log4cpp. |