9 #include "QXmppGlobal.h" 13 #ifdef QXMPP_LOGGABLE_TRACE 14 #define qxmpp_loggable_trace(x) QString("%1(0x%2) %3").arg(metaObject()->className(), QString::number(reinterpret_cast<qint64>(this), 16), x) 16 #define qxmpp_loggable_trace(x) (x) 19 class QXmppLoggerPrivate;
32 Q_PROPERTY(QString logFilePath READ logFilePath WRITE setLogFilePath)
34 Q_PROPERTY(
LoggingType loggingType READ loggingType WRITE setLoggingType)
36 Q_PROPERTY(MessageTypes messageTypes READ messageTypes WRITE setMessageTypes)
52 InformationMessage = 2,
58 Q_DECLARE_FLAGS(MessageTypes, MessageType)
76 QString logFilePath();
77 void setLogFilePath(
const QString &path);
81 QXmppLogger::MessageTypes messageTypes();
82 void setMessageTypes(QXmppLogger::MessageTypes types);
85 virtual void setGauge(
const QString &gauge,
double value);
86 virtual void updateCounter(
const QString &counter, qint64 amount);
97 QXmppLoggerPrivate *d;
113 void childEvent(QChildEvent *event)
override;
129 void info(
const QString &message)
163 void setGauge(
const QString &gauge,
double value);
169 void updateCounter(
const QString &counter, qint64 amount = 1);
172 Q_DECLARE_OPERATORS_FOR_FLAGS(QXmppLogger::MessageTypes)
173 #endif // QXMPPLOGGER_H Warning message.
Definition: QXmppLogger.h:53
void warning(const QString &message)
Definition: QXmppLogger.h:138
Informational message.
Definition: QXmppLogger.h:52
MessageType
This enum describes a type of log message.
Definition: QXmppLogger.h:49
The QXmppLoggable class represents a source of logging messages.
Definition: QXmppLogger.h:104
LoggingType
This enum describes how log message are handled.
Definition: QXmppLogger.h:40
void info(const QString &message)
Definition: QXmppLogger.h:129
void logReceived(const QString &message)
Definition: QXmppLogger.h:147
The QXmppLogger class represents a sink for logging messages.
Definition: QXmppLogger.h:26
void debug(const QString &message)
Definition: QXmppLogger.h:120
Debugging message.
Definition: QXmppLogger.h:51
void logSent(const QString &message)
Definition: QXmppLogger.h:156
Message received from server.
Definition: QXmppLogger.h:54
Message sent to server.
Definition: QXmppLogger.h:55