#include <qdebug.h>
Go to the source code of this file.
|
class | Log |
| Base class for managing log messages. More...
|
|
#define LOGERROR if (getVerbosity() >= 1) qCritical() << "ERROR" << LOGMSG(1) |
Definition at line 45 of file log.h.
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.
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.
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 | ) |
|
Verbosity of global error messages.
Verbosity of global error messages.
Definition at line 26 of file log.cpp.