Just Intonation  Version 1.3.0 (18)
Explore scale-independent dynamically adapting tuning in just intonation
log.h File Reference
#include <qdebug.h>
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Log
 Base class for managing log messages. More...
 

Macros

#define LOGMSG(level)   createLogMessage(__LINE__ ,__FILE__,__FUNCTION__,level).toStdString().c_str()
 
#define LOGSTATUS   if (getVerbosity() >= 4) qDebug() << LOGMSG(4)
 
#define LOGMESSAGE   if (getVerbosity() >= 3) qDebug() << LOGMSG(3)
 
#define LOGWARNING   if (getVerbosity() >= 2) qWarning() << "WARNING" << LOGMSG(2)
 
#define LOGERROR   if (getVerbosity() >= 1) qCritical() << "ERROR" << LOGMSG(1)
 

Functions

void mobileError (QString msg)
 
QString createLogMessage (int line, QString path, QString function, int level)
 Global function generating the log message string. More...
 

Variables

int messageVerbosity
 Verbosity of global error messages. More...
 

Macro Definition Documentation

#define LOGERROR   if (getVerbosity() >= 1) qCritical() << "ERROR" << LOGMSG(1)

Definition at line 45 of file log.h.

#define LOGMESSAGE   if (getVerbosity() >= 3) qDebug() << LOGMSG(3)

Definition at line 43 of file log.h.

#define LOGMSG (   level)    createLogMessage(__LINE__ ,__FILE__,__FUNCTION__,level).toStdString().c_str()

Definition at line 38 of file log.h.

#define LOGSTATUS   if (getVerbosity() >= 4) qDebug() << LOGMSG(4)

Definition at line 42 of file log.h.

#define LOGWARNING   if (getVerbosity() >= 2) qWarning() << "WARNING" << LOGMSG(2)

Definition at line 44 of file log.h.

Function Documentation

QString createLogMessage ( int  line,
QString  path,
QString  function,
int  level 
)

Global function generating the log message string.

Parameters
line: Line number
path: Full path of the function
function: Name of the function
level: Verbosity level
Returns
QString of the message

Definition at line 43 of file log.cpp.

void mobileError ( QString  msg)

Definition at line 1019 of file application.cpp.

Here is the call graph for this function:

Variable Documentation

int messageVerbosity

Verbosity of global error messages.

Verbosity of global error messages.

Definition at line 26 of file log.cpp.