mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +02:00
commit
d48f17e0e1
1 changed files with 3 additions and 3 deletions
|
@ -120,11 +120,11 @@ QString LogHandler::printMessage(LogMsgType type, const QMessageLogContext& cont
|
||||||
}
|
}
|
||||||
|
|
||||||
// log prefix is in the following format
|
// log prefix is in the following format
|
||||||
// [DEBUG] [TIMESTAMP] [PID] [TARGET] logged string
|
// [TIMESTAMP] [DEBUG] [PID] [TARGET] logged string
|
||||||
|
|
||||||
QString prefixString = QString("[%1]").arg(stringForLogType(type));
|
QString prefixString = QString("[%1]").arg(QDateTime::currentDateTime().toString(DATE_STRING_FORMAT));
|
||||||
|
|
||||||
prefixString.append(QString(" [%1]").arg(QDateTime::currentDateTime().toString(DATE_STRING_FORMAT)));
|
prefixString.append(QString(" [%1]").arg(stringForLogType(type)));
|
||||||
|
|
||||||
if (_shouldOutputPID) {
|
if (_shouldOutputPID) {
|
||||||
prefixString.append(QString(" [%1]").arg(QCoreApplication::instance()->applicationPid()));
|
prefixString.append(QString(" [%1]").arg(QCoreApplication::instance()->applicationPid()));
|
||||||
|
|
Loading…
Reference in a new issue