QXmppLoggable Class

The QXmppLoggable class represents a source of logging messages. More...

Public Functions

QXmppLoggable(QObject *parent = nullptr)

Signals

void logMessage(QXmppLogger::MessageType type, const QString &msg)
void setGauge(const QString &gauge, double value)
void updateCounter(const QString &counter, qint64 amount = 1)

Protected Functions

void debug(const QString &message)
void info(const QString &message)
void logReceived(const QString &message)
void logSent(const QString &message)
void warning(const QString &message)

Detailed Description

Member Function Documentation

QXmppLoggable::QXmppLoggable(QObject *parent = nullptr)

Constructs a new QXmppLoggable with parent.

[protected] void QXmppLoggable::debug(const QString &message)

Logs a debugging message.

[protected] void QXmppLoggable::info(const QString &message)

Logs an informational message.

[signal] void QXmppLoggable::logMessage(QXmppLogger::MessageType type, const QString &msg)

This signal is emitted to send logging messages.

msg and type.

[protected] void QXmppLoggable::logReceived(const QString &message)

Logs a received packet.

message.

[protected] void QXmppLoggable::logSent(const QString &message)

Logs a sent packet.

message.

[signal] void QXmppLoggable::setGauge(const QString &gauge, double value)

Sets the given gauge to value.

[signal] void QXmppLoggable::updateCounter(const QString &counter, qint64 amount = 1)

Updates the given counter by amount.

[protected] void QXmppLoggable::warning(const QString &message)

Logs a warning message.