LogReceiver Class
Connects to a port and waits for log messages sent via UDP. More...
Header: | #include <LogReceiver> |
Inherits: | QObject |
Public Functions
LogReceiver(QObject *parent = 0) | |
QString | address() const |
int | port() const |
Public Slots
void | connectToServer() |
void | setAddress(const QString &address) |
void | setPort(int port) |
Signals
void | message(int type, const QString &msg, const QUrl &url, int line, int column) |
See also Logger and RemoteLogger.
Member Function Documentation
LogReceiver::LogReceiver(QObject *parent = 0)
Standard constructor using parent as parent
[slot]
void LogReceiver::connectToServer()
Binds the socket to the address and port using UDP
[signal]
void LogReceiver::message(int type, const QString &msg, const QUrl &url, int line, int column)
This signal is emitted whenever a datagram arrives on the socket.
The type is the type of the message. The msg is the message content of the log entry. The url is the source of the document emitting the log. And line and column is the position in the source code.
[slot]
void LogReceiver::setAddress(const QString &address)
Sets the address on which we wait for incoming logs
See also address().
[slot]
void LogReceiver::setPort(int port)
Sets the port on which we wait for incoming logs
See also port().
QString LogReceiver::address() const
The address on which we wait for incoming logs
See also setAddress().
int LogReceiver::port() const
The port on which we wait for incoming logs
See also setPort().
© 2019 Luxoft Sweden AB. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.