The QXmppLogger class represents a sink for logging messages. More...
#include <QXmppLogger.h>
Public Types | |
| enum | LoggingType { NoLogging = 0, FileLogging = 1, StdoutLogging = 2, SignalLogging = 4 } |
This enum describes how log message are handled. More... | |
| enum | MessageType { NoMessage = 0, DebugMessage = 1, InformationMessage = 2, WarningMessage = 4, ReceivedMessage = 8, SentMessage = 16, AnyMessage = 31 } |
This enum describes a type of log message. More... | |
Public Slots | |
| void | log (QXmppLogger::MessageType type, const QString &text) |
Signals | |
| void | message (QXmppLogger::MessageType type, const QString &text) |
| This signal is emitted whenever a log message is received. | |
Public Member Functions | |
| QXmppLogger (QObject *parent=0) | |
| QXmppLogger::LoggingType | loggingType () |
| void | setLoggingType (QXmppLogger::LoggingType type) |
| QString | logFilePath () |
| void | setLogFilePath (const QString &path) |
| QXmppLogger::MessageTypes | messageTypes () |
| void | setMessageTypes (QXmppLogger::MessageTypes types) |
Static Public Member Functions | |
| static QXmppLogger * | getLogger () |
The QXmppLogger class represents a sink for logging messages.
| QXmppLogger::QXmppLogger | ( | QObject * | parent = 0 |
) |
Constructs a new QXmppLogger.
| parent |
| QXmppLogger * QXmppLogger::getLogger | ( | ) | [static] |
Returns the default logger.
| void QXmppLogger::log | ( | QXmppLogger::MessageType | type, | |
| const QString & | text | |||
| ) | [slot] |
Add a logging message.
| type | ||
| text |
| QString QXmppLogger::logFilePath | ( | ) |
Returns the path to which logging messages should be written.
| QXmppLogger::LoggingType QXmppLogger::loggingType | ( | ) |
Returns the handler for logging messages.
| QXmppLogger::MessageTypes QXmppLogger::messageTypes | ( | ) |
Returns the types of messages to log.
| void QXmppLogger::setLogFilePath | ( | const QString & | path | ) |
Sets the path to which logging messages should be written.
| path |
| void QXmppLogger::setLoggingType | ( | QXmppLogger::LoggingType | type | ) |
Sets the handler for logging messages.
| type |
| void QXmppLogger::setMessageTypes | ( | QXmppLogger::MessageTypes | types | ) |
Sets the types of messages to log.
| types |
1.7.1