#include <loggingevent.h>
Public Member Functions | |
LoggingEvent () | |
LoggingEvent (const Logger *pLogger, Level level, const QString &rMessage) | |
LoggingEvent (const Logger *pLogger, Level level, const QString &rMessage, qint64 timeStamp) | |
LoggingEvent (const Logger *pLogger, Level level, const QString &rMessage, const QString &rNdc, const QHash< QString, QString > &rProperties, const QString &rThreadName, qint64 timeStamp) | |
Level | level () const |
const Logger * | logger () const |
QString | message () const |
QHash< QString, QString > | mdc () const |
QString | ndc () const |
QHash< QString, QString > | properties () const |
qint64 | sequenceNumber () const |
QString | threadName () const |
qint64 | timeStamp () const |
QString | loggerName () const |
QString | property (const QString &rKey) const |
QStringList | propertyKeys () const |
void | setProperty (const QString &rKey, const QString &rValue) |
QString | toString () const |
Static Public Member Functions | |
static qint64 | sequenceCount () |
static qint64 | startTime () |
Friends | |
QDataStream & | operator<< (QDataStream &rStream, const LoggingEvent &rLoggingEvent) |
QDataStream & | operator>> (QDataStream &rStream, LoggingEvent &rLoggingEvent) |
Related Functions | |
(Note that these are not member functions.) | |
QDebug | operator<< (QDebug debug, const LoggingEvent &rLoggingEvent) |
The class uses milliseconds since 1970-01-01T00:00:00, Coordinated Universal Time for time values. For converstion from and to QDateTime use DateTime.
Log4Qt::LoggingEvent::LoggingEvent | ( | ) |
Log4Qt::LoggingEvent::LoggingEvent | ( | const Logger * | pLogger, | |
Level | level, | |||
const QString & | rMessage | |||
) |
Log4Qt::LoggingEvent::LoggingEvent | ( | const Logger * | pLogger, | |
Level | level, | |||
const QString & | rMessage, | |||
qint64 | timeStamp | |||
) |
Log4Qt::LoggingEvent::LoggingEvent | ( | const Logger * | pLogger, | |
Level | level, | |||
const QString & | rMessage, | |||
const QString & | rNdc, | |||
const QHash< QString, QString > & | rProperties, | |||
const QString & | rThreadName, | |||
qint64 | timeStamp | |||
) |
Level Log4Qt::LoggingEvent::level | ( | ) | const [inline] |
const Logger * Log4Qt::LoggingEvent::logger | ( | ) | const [inline] |
QString Log4Qt::LoggingEvent::message | ( | ) | const [inline] |
QHash< QString, QString > Log4Qt::LoggingEvent::mdc | ( | ) | const [inline] |
QString Log4Qt::LoggingEvent::ndc | ( | ) | const [inline] |
QHash< QString, QString > Log4Qt::LoggingEvent::properties | ( | ) | const [inline] |
qint64 Log4Qt::LoggingEvent::sequenceNumber | ( | ) | const [inline] |
QString Log4Qt::LoggingEvent::threadName | ( | ) | const [inline] |
qint64 Log4Qt::LoggingEvent::timeStamp | ( | ) | const [inline] |
QString Log4Qt::LoggingEvent::loggerName | ( | ) | const |
QString Log4Qt::LoggingEvent::property | ( | const QString & | rKey | ) | const [inline] |
QStringList Log4Qt::LoggingEvent::propertyKeys | ( | ) | const [inline] |
void Log4Qt::LoggingEvent::setProperty | ( | const QString & | rKey, | |
const QString & | rValue | |||
) | [inline] |
QString Log4Qt::LoggingEvent::toString | ( | ) | const |
static qint64 Log4Qt::LoggingEvent::sequenceCount | ( | ) | [static] |
static qint64 Log4Qt::LoggingEvent::startTime | ( | ) | [static] |
QDataStream & operator<< | ( | QDataStream & | rStream, | |
const LoggingEvent & | rLoggingEvent | |||
) | [friend] |
Writes the given error rLoggingEvent to the given stream rStream, and returns a reference to the stream.
QDataStream & operator>> | ( | QDataStream & | rStream, | |
LoggingEvent & | rLoggingEvent | |||
) | [friend] |
Reads an error from the given stream rStream into the given error rLoggingEvent, and returns a reference to the stream.
QDebug operator<< | ( | QDebug | debug, | |
const LoggingEvent & | rLoggingEvent | |||
) | [related] |
Writes all object member variables to the given debug stream debug and returns the stream.
LoggingEvent(level:"WARN" logger:"Log4Qt::Properties" message:"Unknown escape sequence '\j' in property starting at line 1" sequencenumber:14 threadname:"main" timestamp:1194337148937(QDateTime("Tue Nov 6 03:19:08 2007") ) sequenceCount: 14 )