refs #336 Using the new CLogMessage syntax to log messages.

This commit is contained in:
Mathew Sutcliffe
2014-10-14 00:09:18 +01:00
parent 067344df24
commit a294e8db0f
33 changed files with 200 additions and 192 deletions

View File

@@ -544,7 +544,7 @@ namespace BlackSimPlugin
}
m_syncDeferredCounter = 5; // allow some time to sync
CLogMessage().info(this, "Synchronized time to UTC: %1") << myTime.toString();
CLogMessage(this).info("Synchronized time to UTC: %1") << myTime.toString();
}
}
}

View File

@@ -38,7 +38,7 @@ namespace BlackSimPlugin
.arg(event->szApplicationName)
.arg(event->dwApplicationVersionMajor).arg(event->dwApplicationVersionMinor).arg(event->dwApplicationBuildMajor).arg(event->dwApplicationBuildMinor)
.arg(event->dwSimConnectVersionMajor).arg(event->dwSimConnectVersionMinor).arg(event->dwSimConnectBuildMajor).arg(event->dwSimConnectBuildMinor);
CLogMessage().info(CSimulatorFsx::getMessageCategory(), CProject::systemNameAndVersion());
CLogMessage(static_cast<CSimulatorFsx *>(nullptr)).info(CProject::systemNameAndVersion());
break;
}
case SIMCONNECT_RECV_ID_EXCEPTION:

View File

@@ -255,7 +255,7 @@ namespace BlackSimPlugin
{
if (enable)
{
CLogMessage().warning(this, "X-Plane already provides real time synchronization");
CLogMessage(this).warning("X-Plane already provides real time synchronization");
}
}