36 #define LOGMSG(level) createLogMessage(__LINE__ ,__FILE__,__PRETTY_FUNCTION__,level).toStdString().c_str() 38 #define LOGMSG(level) createLogMessage(__LINE__ ,__FILE__,__FUNCTION__,level).toStdString().c_str() 42 #define LOGSTATUS if (getVerbosity() >= 4) qDebug() << LOGMSG(4) 43 #define LOGMESSAGE if (getVerbosity() >= 3) qDebug() << LOGMSG(3) 44 #define LOGWARNING if (getVerbosity() >= 2) qWarning() << "WARNING" << LOGMSG(2) 45 #define LOGERROR if (getVerbosity() >= 1) qCritical() << "ERROR" << LOGMSG(1) 53 QString
createLogMessage (
int line, QString path, QString
function,
int level);
94 QString
createLogMessage (
int line, QString path, QString
function,
int level);
QString getModuleName() const
Get module name.
void setModuleName(const QString &name)
Specify the name of the class-specific module.
int getVerbosity()
Get the actual verbosity level.
Log()
Constructor of the Log base class.
int messageVerbosity
Verbosity of error messages.
QString createLogMessage(int line, QString path, QString function, int level)
Global function generating the log message string.
void mobileError(QString msg)
void setVerbosity(int verbosity)
Set the verbosity level of the class-specific messages.
QString createLogMessage(int line, QString path, QString function, int level)
Class-specific function generating the log message string.
QString mModule
Name of the module.
Base class for managing log messages.
int messageVerbosity
Verbosity of global error messages.