#include <ttcclayout.h>
Public Types | |
enum | DateFormat { NONE, ISO8601, ABSOLUTE, DATE, RELATIVE } |
Public Member Functions | |
TTCCLayout (QObject *pParent=0) | |
TTCCLayout (const QString &rDateFormat, QObject *pParent=0) | |
TTCCLayout (DateFormat dateFormat, QObject *pParent=0) | |
virtual | ~TTCCLayout () |
bool | categoryPrefixing () const |
bool | contextPrinting () const |
QString | dateFormat () const |
bool | threadPrinting () const |
void | setCategoryPrefixing (bool categoryPrefixing) |
void | setContextPrinting (bool contextPrinting) |
void | setDateFormat (const QString &rDateFormat) |
void | setDateFormat (DateFormat dateFormat) |
void | setThreadPrinting (bool threadPrinting) |
virtual QString | format (const LoggingEvent &rEvent) |
Protected Member Functions | |
virtual QDebug | debug (QDebug &rDebug) const |
Properties | |
bool | categoryPrefixing |
bool | contextPrinting |
QString | dateFormat |
bool | threadPrinting |
The enum DateFormat defines constants for date formats.
Log4Qt::TTCCLayout::TTCCLayout | ( | QObject * | pParent = 0 |
) |
Log4Qt::TTCCLayout::TTCCLayout | ( | const QString & | rDateFormat, | |
QObject * | pParent = 0 | |||
) |
Log4Qt::TTCCLayout::TTCCLayout | ( | DateFormat | dateFormat, | |
QObject * | pParent = 0 | |||
) |
Creates a TTCCLayout with the date formar value specified by the dateFormat constant and the parent pParent.
virtual Log4Qt::TTCCLayout::~TTCCLayout | ( | ) | [virtual] |
bool Log4Qt::TTCCLayout::categoryPrefixing | ( | ) | const |
bool Log4Qt::TTCCLayout::contextPrinting | ( | ) | const |
QString Log4Qt::TTCCLayout::dateFormat | ( | ) | const |
bool Log4Qt::TTCCLayout::threadPrinting | ( | ) | const |
void Log4Qt::TTCCLayout::setCategoryPrefixing | ( | bool | categoryPrefixing | ) | [inline] |
void Log4Qt::TTCCLayout::setContextPrinting | ( | bool | contextPrinting | ) | [inline] |
void Log4Qt::TTCCLayout::setDateFormat | ( | const QString & | rDateFormat | ) | [inline] |
void Log4Qt::TTCCLayout::setDateFormat | ( | DateFormat | dateFormat | ) |
Sets the date format to the value specified by the dateFormat constant.
void Log4Qt::TTCCLayout::setThreadPrinting | ( | bool | threadPrinting | ) | [inline] |
virtual QString Log4Qt::TTCCLayout::format | ( | const LoggingEvent & | rEvent | ) | [virtual] |
Implements Log4Qt::Layout.
virtual QDebug Log4Qt::TTCCLayout::debug | ( | QDebug & | rDebug | ) | const [protected, virtual] |
Writes all object member variables to the given debug stream rDebug and returns the stream.
TTCCLayout(name:"TTCC" categoryprefixing:true contextprinting:true dateformat:"ISO8601" referencecount:1 threadprinting:true)
Implements Log4Qt::LogObject.
bool Log4Qt::TTCCLayout::categoryPrefixing [inline, read, write] |
The property holds if the logger name is part of the formatted output.
The default value is true for including the logger name.
bool Log4Qt::TTCCLayout::contextPrinting [inline, read, write] |
The property holds if the nested context information is part of the formatted output.
The default value it true for including the nested context information.
QString Log4Qt::TTCCLayout::dateFormat [inline, read, write] |
The property holds the date format used by the layout.
The default date format is "RELATIVE".
bool Log4Qt::TTCCLayout::threadPrinting [inline, read, write] |
The property holds if the thread name is part of the formatted output.
The default value it true for including the thread name.