28 #include "QXmppGlobal.h" 32 #ifdef QXMPP_LOGGABLE_TRACE 33 #define qxmpp_loggable_trace(x) QString("%1(0x%2) %3").arg(metaObject()->className(), QString::number(reinterpret_cast<qint64>(this), 16), x) 35 #define qxmpp_loggable_trace(x) (x) 38 class QXmppLoggerPrivate;
51 Q_PROPERTY(QString logFilePath READ logFilePath WRITE setLogFilePath)
53 Q_PROPERTY(
LoggingType loggingType READ loggingType WRITE setLoggingType)
55 Q_PROPERTY(MessageTypes messageTypes READ messageTypes WRITE setMessageTypes)
71 InformationMessage = 2,
77 Q_DECLARE_FLAGS(MessageTypes, MessageType)
95 QString logFilePath();
96 void setLogFilePath(
const QString &path);
100 QXmppLogger::MessageTypes messageTypes();
101 void setMessageTypes(QXmppLogger::MessageTypes types);
104 virtual void setGauge(
const QString &gauge,
double value);
105 virtual void updateCounter(
const QString &counter, qint64 amount);
116 QXmppLoggerPrivate *d;
132 void childEvent(QChildEvent *event)
override;
148 void info(
const QString &message)
182 void setGauge(
const QString &gauge,
double value);
188 void updateCounter(
const QString &counter, qint64 amount = 1);
191 Q_DECLARE_OPERATORS_FOR_FLAGS(QXmppLogger::MessageTypes)
192 #endif // QXMPPLOGGER_H Warning message.
Definition: QXmppLogger.h:72
void warning(const QString &message)
Definition: QXmppLogger.h:157
Informational message.
Definition: QXmppLogger.h:71
MessageType
This enum describes a type of log message.
Definition: QXmppLogger.h:68
The QXmppLoggable class represents a source of logging messages.
Definition: QXmppLogger.h:123
LoggingType
This enum describes how log message are handled.
Definition: QXmppLogger.h:59
void info(const QString &message)
Definition: QXmppLogger.h:148
void logReceived(const QString &message)
Definition: QXmppLogger.h:166
The QXmppLogger class represents a sink for logging messages.
Definition: QXmppLogger.h:45
void debug(const QString &message)
Definition: QXmppLogger.h:139
Debugging message.
Definition: QXmppLogger.h:70
void logSent(const QString &message)
Definition: QXmppLogger.h:175
Message received from server.
Definition: QXmppLogger.h:73
Message sent to server.
Definition: QXmppLogger.h:74