The QXmppLogger class represents a sink for logging messages.
More...
#include <QXmppLogger.h>
Detailed Description
The QXmppLogger class represents a sink for logging messages.
Member Enumeration Documentation
This enum describes how log message are handled.
- Enumerator:
NoLogging |
Log messages are discarded.
|
FileLogging |
Log messages are written to a file.
|
StdoutLogging |
Log messages are written to the standard output.
|
SignalLogging |
Log messages are emitted as a signal.
|
This enum describes a type of log message.
- Enumerator:
NoMessage |
No message type.
|
DebugMessage |
Debugging message.
|
InformationMessage |
Informational message.
|
WarningMessage |
Warning message.
|
ReceivedMessage |
Message received from server.
|
SentMessage |
Message sent to server.
|
AnyMessage |
Any message type.
|
Constructor & Destructor Documentation
QXmppLogger::QXmppLogger |
( |
QObject * |
parent = 0 | ) |
|
Member Function Documentation
Returns the default logger.
Add a logging message.
- Parameters
-
void QXmppLogger::reopen |
( |
| ) |
|
|
slot |
If logging to a file, causes the file to be re-opened.
void QXmppLogger::setGauge |
( |
const QString & |
gauge, |
|
|
double |
value |
|
) |
| |
|
virtualslot |
Sets the given gauge to value.
NOTE: the base implementation does nothing.
void QXmppLogger::setLogFilePath |
( |
const QString & |
path | ) |
|
Sets the path to which logging messages should be written.
- Parameters
-
- See Also
- setLoggingType()
Sets the handler for logging messages.
- Parameters
-
void QXmppLogger::setMessageTypes |
( |
QXmppLogger::MessageTypes |
types | ) |
|
Sets the types of messages to log.
- Parameters
-
void QXmppLogger::updateCounter |
( |
const QString & |
counter, |
|
|
qint64 |
amount |
|
) |
| |
|
virtualslot |
Updates the given counter by amount.
NOTE: the base implementation does nothing.
Property Documentation
QString QXmppLogger::logFilePath |
|
readwrite |
Returns the path to which logging messages should be written.
- See Also
- loggingType()
Returns the handler for logging messages.
QXmppLogger::MessageTypes QXmppLogger::messageTypes |
|
readwrite |
Returns the types of messages to log.
The documentation for this class was generated from the following files: