IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QExtend::Logger Class Reference

A logger class. More...

#include <logger.hpp>

List of all members.

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.

Detailed Description

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.


Member Function Documentation

static void QExtend::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.

Parameters:
receiver Receiver for the sendLog signal
static void QExtend::Logger::log ( LoggerType  type,
const char *  message,
const char *  location 
) [static]

Entry point of the logger classe.

Parameters:
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.

Parameters:
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.
Responsable bénévole de la rubrique Qt : Thibaut Cuvelier -