45 QStringList parts = path.split(
"/");
46 QString filename = parts.at(parts.size()-1);
48 QTextStream msg(&str);
49 msg <<
"(" <<
function <<
" in " << filename <<
":" << line <<
"):";
50 if (level>4) msg <<
"\nFull path: " << path <<
"\n";
66 , mModule(
"Unknown Module")
135 QStringList parts = path.split(
"/");
136 QString filename = parts.at(parts.size()-1);
138 QTextStream msg(&str);
139 msg <<
mModule <<
" (" <<
function <<
" in " << filename <<
":" << line <<
"):";
140 if (level>4) msg <<
"\nFull path: " << path <<
"\n";
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.
QString createLogMessage(int line, QString path, QString function, int level)
Global function generating the log message string.
Log()
Constructor of the Log base class.
int messageVerbosity
Verbosity of error messages.
void setVerbosity(int verbosity)
Set the verbosity level of the class-specific messages.
int messageVerbosity
Global verbosity level.
QString createLogMessage(int line, QString path, QString function, int level)
Class-specific function generating the log message string.
QString mModule
Name of the module.