Ref T773, clear log when written, set object name for logger

This commit is contained in:
Klaus Basan
2020-02-12 21:45:51 +01:00
committed by Mat Sutcliffe
parent f6c5e6f3cb
commit a629b70724
4 changed files with 12 additions and 4 deletions

View File

@@ -445,7 +445,8 @@ namespace BlackCore
this->clearInterpolationLogCallsigns();
// write
m_interpolationLogger.writeLogInBackground();
const bool clearLog = true;
m_interpolationLogger.writeLogInBackground(clearLog);
CLogMessage(this).info(u"Started writing interpolation log");
return true;
}
@@ -687,6 +688,8 @@ namespace BlackCore
CIdentifiable(this)
{
this->setObjectName("Simulator: " + pluginInfo.getIdentifier());
m_interpolationLogger.setObjectName("Logger: " + pluginInfo.getIdentifier());
ISimulator::registerHelp();
// provider signals, hook up with remote aircraft provider