#include <patternlayout.h>
Public Types | |
enum | ConversionPattern { DEFAULT_CONVERSION_PATTERN, TTCC_CONVERSION_PATTERN } |
Public Member Functions | |
PatternLayout (QObject *pParent=0) | |
PatternLayout (const QString &rPattern, QObject *pParent=0) | |
PatternLayout (ConversionPattern conversionPattern, QObject *pParent=0) | |
virtual | ~PatternLayout () |
QString | conversionPattern () const |
void | setConversionPattern (const QString &rPattern) |
void | setConversionPattern (ConversionPattern conversionPattern) |
virtual QString | format (const LoggingEvent &rEvent) |
Protected Member Functions | |
virtual QDebug | debug (QDebug &rDebug) const |
Properties | |
QString | conversionPattern |
The enum ConversionPattern defines constants for pattern strings.
Log4Qt::PatternLayout::PatternLayout | ( | QObject * | pParent = 0 |
) |
Log4Qt::PatternLayout::PatternLayout | ( | const QString & | rPattern, | |
QObject * | pParent = 0 | |||
) |
Log4Qt::PatternLayout::PatternLayout | ( | ConversionPattern | conversionPattern, | |
QObject * | pParent = 0 | |||
) |
Creates a PatternLayout with the conversion pattern value specified by the conversionPattern constant.
virtual Log4Qt::PatternLayout::~PatternLayout | ( | ) | [virtual] |
QString Log4Qt::PatternLayout::conversionPattern | ( | ) | const |
void Log4Qt::PatternLayout::setConversionPattern | ( | const QString & | rPattern | ) | [inline] |
void Log4Qt::PatternLayout::setConversionPattern | ( | ConversionPattern | conversionPattern | ) |
Sets the conversion pattern to the value specified by the conversionPattern constant.
virtual QString Log4Qt::PatternLayout::format | ( | const LoggingEvent & | rEvent | ) | [virtual] |
Implements Log4Qt::Layout.
virtual QDebug Log4Qt::PatternLayout::debug | ( | QDebug & | rDebug | ) | const [protected, virtual] |
Writes all object member variables to the given debug stream rDebug and returns the stream.
PatternLayout(name:"PL" pattern:"%r [%t] %p %c %x - %m%n" "referencecount:3")
Implements Log4Qt::LogObject.
QString Log4Qt::PatternLayout::conversionPattern [inline, read, write] |
The property holds the conversion pattern used by the appender.
The default is "%m%n".