31 #include "QXmppGlobal.h" 33 #ifdef QXMPP_LOGGABLE_TRACE 34 #define qxmpp_loggable_trace(x) QString("%1(0x%2) %3").arg(metaObject()->className(), QString::number(reinterpret_cast<qint64>(this), 16), x) 36 #define qxmpp_loggable_trace(x) (x) 39 class QXmppLoggerPrivate;
50 Q_PROPERTY(QString logFilePath READ logFilePath WRITE setLogFilePath)
51 Q_PROPERTY(
LoggingType loggingType READ loggingType WRITE setLoggingType)
52 Q_PROPERTY(MessageTypes messageTypes READ messageTypes WRITE setMessageTypes)
69 InformationMessage = 2,
85 QString logFilePath();
86 void setLogFilePath(const QString &path);
89 void setMessageTypes(
QXmppLogger::MessageTypes types);
92 virtual
void setGauge(const QString &gauge,
double value);
93 virtual
void updateCounter(const QString &counter, qint64 amount);
104 QXmppLoggerPrivate *d;
120 virtual void childEvent(QChildEvent *event);
136 void info(
const QString &message)
170 void setGauge(
const QString &gauge,
double value);
176 void updateCounter(
const QString &counter, qint64 amount = 1);
179 Q_DECLARE_OPERATORS_FOR_FLAGS(QXmppLogger::MessageTypes)
180 #endif // QXMPPLOGGER_H Warning message.
Definition: QXmppLogger.h:70
void warning(const QString &message)
Definition: QXmppLogger.h:145
Informational message.
Definition: QXmppLogger.h:69
MessageType
This enum describes a type of log message.
Definition: QXmppLogger.h:65
The QXmppLoggable class represents a source of logging messages.
Definition: QXmppLogger.h:111
LoggingType
This enum describes how log message are handled.
Definition: QXmppLogger.h:56
void info(const QString &message)
Definition: QXmppLogger.h:136
void logReceived(const QString &message)
Definition: QXmppLogger.h:154
The QXmppLogger class represents a sink for logging messages.
Definition: QXmppLogger.h:45
void debug(const QString &message)
Definition: QXmppLogger.h:127
Debugging message.
Definition: QXmppLogger.h:68
void logSent(const QString &message)
Definition: QXmppLogger.h:163
Message received from server.
Definition: QXmppLogger.h:71
Message sent to server.
Definition: QXmppLogger.h:72