A logger class. More...
#include <logger.hpp>
Signals | |
| void | sendLog (LoggerType type, QString message, QString location) |
| Emit log message to connected ILog subclasses. | |
Static Public Member Functions | |
| static void | log (LoggerType type, const char *message, const char *location) |
| Entry point of the logger classe. | |
| static void | connectToLogger (ILog *receiver) |
| Function to connect a log class to the logger for obtaining log signal. | |
A logger class.
To use the Logger, you need to connect a log class (subclass of ILog) to it using connectToLogger. Then you simply use the macro LOG(type, message) to show log on connected support.
Definition at line 381 of file logger.hpp.
| static void QExtend::Logger::connectToLogger | ( | ILog * | receiver | ) | [static] |
| static void QExtend::Logger::log | ( | LoggerType | type, | |
| const char * | message, | |||
| const char * | location | |||
| ) | [static] |
Entry point of the logger classe.
| type | Type of the Log | |
| message | String containing the message | |
| location | String containing the file name and the line number where the log function is call. |
| void QExtend::Logger::sendLog | ( | LoggerType | type, | |
| QString | message, | |||
| QString | location | |||
| ) | [signal] |
Emit log message to connected ILog subclasses.
| type | Type of the Log | |
| message | String containing the message | |
| location | String containing the file name and the line number where the log function is call. |
© 2000-2025 - www.developpez.com