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 303 of file logger.hpp.
void Logger::connectToLogger | ( | ILog * | receiver | ) | [static] |
Function to connect a log class to the logger for obtaining log signal //!
The log class in parameter need to be a subclass of ILog.
receiver | Receiver for the sendLog signal |
Definition at line 156 of file logger.cpp.
void 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. |
Definition at line 144 of file logger.cpp.
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. |
Les sources présentées sur cette page sont libres de droits et vous pouvez les utiliser à votre convenance. Par contre, la page de présentation constitue une œuvre intellectuelle protégée par les droits d'auteur. Copyright © 2010 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site ni de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon vous encourez selon la loi jusqu'à trois ans de prison et jusqu'à 300 000 € de dommages et intérêts.