diff --git a/src/blackcore/context_application_impl.cpp b/src/blackcore/context_application_impl.cpp index 898fe2378..f15f95b86 100644 --- a/src/blackcore/context_application_impl.cpp +++ b/src/blackcore/context_application_impl.cpp @@ -49,7 +49,7 @@ namespace BlackCore */ void CContextApplication::notifyAboutComponentChange(uint component, uint action) { - if (this->getRuntime()->isSlotLogForApplicationEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, QString::number(component), QString::number(action)); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, { QString::number(component), QString::number(action) }); this->componentChanged(component, action); } @@ -58,7 +58,7 @@ namespace BlackCore */ bool CContextApplication::writeToFile(const QString &fileName, const QString &content) { - if (this->getRuntime()->isSlotLogForApplicationEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, fileName, content.left(25)); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, { fileName, content.left(25) }); if (fileName.isEmpty()) return false; QFile file(fileName); bool success = false; @@ -76,7 +76,7 @@ namespace BlackCore */ QString CContextApplication::readFromFile(const QString &fileName) { - if (this->getRuntime()->isSlotLogForApplicationEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, fileName); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, fileName); QFile file(fileName); QString content; if (fileName.isEmpty()) return content; diff --git a/src/blackcore/context_application_impl.h b/src/blackcore/context_application_impl.h index b74f035b1..e1b8c3302 100644 --- a/src/blackcore/context_application_impl.h +++ b/src/blackcore/context_application_impl.h @@ -50,6 +50,8 @@ namespace BlackCore virtual bool existsFile(const QString &fileName) override; protected: + static const auto c_logContext = CRuntime::LogForApplication; + //! Constructor CContextApplication(CRuntimeConfig::ContextMode mode, CRuntime *runtime); diff --git a/src/blackcore/context_audio_impl.cpp b/src/blackcore/context_audio_impl.cpp index d14903989..c54c8116e 100644 --- a/src/blackcore/context_audio_impl.cpp +++ b/src/blackcore/context_audio_impl.cpp @@ -76,7 +76,7 @@ namespace BlackCore CVoiceRoomList CContextAudio::getComVoiceRoomsWithAudioStatus() const { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); return getComVoiceRooms(); } @@ -86,7 +86,7 @@ namespace BlackCore CVoiceRoom CContextAudio::getCom1VoiceRoom(bool withAudioStatus) const { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, withAudioStatus); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, withAudioStatus); // We always have the audio status due to shared status return m_channelCom1->getVoiceRoom(); } @@ -97,7 +97,7 @@ namespace BlackCore CVoiceRoom CContextAudio::getCom2VoiceRoom(bool withAudioStatus) const { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, withAudioStatus); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, withAudioStatus); // We always have the audio status due to shared status return m_channelCom2->getVoiceRoom(); } @@ -108,7 +108,7 @@ namespace BlackCore CVoiceRoomList CContextAudio::getComVoiceRooms() const { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); CVoiceRoomList voiceRoomList; voiceRoomList.push_back(m_channelCom1->getVoiceRoom()); voiceRoomList.push_back(m_channelCom2->getVoiceRoom()); @@ -121,7 +121,7 @@ namespace BlackCore void CContextAudio::leaveAllVoiceRooms() { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); m_channelCom1->leaveVoiceRoom(); m_channelCom2->leaveVoiceRoom(); } @@ -132,7 +132,7 @@ namespace BlackCore CAudioDeviceList CContextAudio::getAudioDevices() const { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); return this->m_voice->audioDevices(); } @@ -142,7 +142,7 @@ namespace BlackCore CAudioDeviceList CContextAudio::getCurrentAudioDevices() const { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); CAudioDeviceList devices; devices.push_back(this->m_voice->getCurrentInputDevice()); devices.push_back(this->m_voice->getCurrentOutputDevice()); @@ -156,7 +156,7 @@ namespace BlackCore { Q_ASSERT(this->m_voice); Q_ASSERT(audioDevice.getType() != CAudioDevice::Unknown); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, audioDevice.toQString()); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, audioDevice.toQString()); if (audioDevice.getType() == CAudioDevice::InputDevice) { this->m_voice->setInputDevice(audioDevice); @@ -173,7 +173,7 @@ namespace BlackCore void CContextAudio::setVolumes(const CComSystem &com1, const CComSystem &com2) { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, com1.toQString(), com2.toQString()); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, { com1.toQString(), com2.toQString() }); // volumes qint32 vol1 = com1.getVolumeOutput(); @@ -192,7 +192,7 @@ namespace BlackCore bool CContextAudio::isMuted() const { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); return m_channelCom1->isMuted() && m_channelCom2->isMuted(); } @@ -203,7 +203,7 @@ namespace BlackCore { Q_ASSERT(this->m_voice); Q_ASSERT(newRooms.size() == 2); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, newRooms.toQString()); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, newRooms.toQString()); CVoiceRoomList currentRooms = getComVoiceRooms(); CVoiceRoom currentRoom1 = currentRooms[0]; @@ -244,7 +244,7 @@ namespace BlackCore CCallsignList CContextAudio::getCom1RoomCallsigns() const { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); return m_channelCom1->getVoiceRoomCallsigns(); } @@ -254,7 +254,7 @@ namespace BlackCore CCallsignList CContextAudio::getCom2RoomCallsigns() const { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); return m_channelCom2->getVoiceRoomCallsigns(); } @@ -266,7 +266,7 @@ namespace BlackCore Q_ASSERT(this->m_voice); Q_ASSERT(this->getRuntime()); if (!this->getRuntime()->getIContextNetwork()) return Network::CUserList(); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); return this->getIContextNetwork()->getUsersForCallsigns(this->getCom1RoomCallsigns()); } @@ -278,7 +278,7 @@ namespace BlackCore Q_ASSERT(this->m_voice); Q_ASSERT(this->getRuntime()); if (!this->getRuntime()->getIContextNetwork()) return Network::CUserList(); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); return this->getIContextNetwork()->getUsersForCallsigns(this->getCom2RoomCallsigns()); } @@ -288,7 +288,7 @@ namespace BlackCore void CContextAudio::playSelcalTone(const CSelcal &selcal) const { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, selcal.toQString()); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, selcal.toQString()); CAudioDevice outputDevice = m_voice->getCurrentOutputDevice(); BlackSound::CSoundGenerator::playSelcal(90, selcal, outputDevice); } @@ -299,7 +299,7 @@ namespace BlackCore void CContextAudio::playNotification(uint notification, bool considerSettings) const { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, QString::number(notification)); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, QString::number(notification)); BlackSound::CNotificationSounds::Notification notificationSound = static_cast(notification); if (considerSettings) @@ -326,7 +326,7 @@ namespace BlackCore void CContextAudio::runMicrophoneTest() { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); this->m_voice->runMicrophoneTest(); } @@ -336,7 +336,7 @@ namespace BlackCore void CContextAudio::runSquelchTest() { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); this->m_voice->runSquelchTest(); } @@ -346,7 +346,7 @@ namespace BlackCore QString CContextAudio::getMicrophoneTestResult() const { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); return this->m_voice->micTestResultAsString(); } @@ -356,7 +356,7 @@ namespace BlackCore double CContextAudio::getSquelchValue() const { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); return static_cast(this->m_voice->inputSquelch()); } @@ -366,7 +366,7 @@ namespace BlackCore void CContextAudio::enableAudioLoopback(bool enable) { Q_ASSERT(this->m_voice); - if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); m_voice->enableAudioLoopback(enable); } diff --git a/src/blackcore/context_audio_impl.h b/src/blackcore/context_audio_impl.h index c7f12c59b..e642a9d1e 100644 --- a/src/blackcore/context_audio_impl.h +++ b/src/blackcore/context_audio_impl.h @@ -131,6 +131,8 @@ namespace BlackCore void ps_initNotificationSounds(); private: + static const auto c_logContext = CRuntime::LogForAudio; + //! Connection in transition bool inTransitionState() const; diff --git a/src/blackcore/context_ownaircraft_impl.cpp b/src/blackcore/context_ownaircraft_impl.cpp index e3c8d3d19..60fbf8337 100644 --- a/src/blackcore/context_ownaircraft_impl.cpp +++ b/src/blackcore/context_ownaircraft_impl.cpp @@ -70,7 +70,7 @@ namespace BlackCore */ void CContextOwnAircraft::resolveVoiceRooms() { - if (this->getRuntime()->isSlotLogForOwnAircraftEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); if (this->m_voiceRoom1UrlOverride.isEmpty() && this->m_voiceRoom2UrlOverride.isEmpty() && !this->m_automaticVoiceRoomResolution) return; if (!this->getIContextNetwork()) return; // no chance to resolve rooms if (!this->getIContextAudio()) return; // no place to set rooms @@ -95,7 +95,7 @@ namespace BlackCore */ void CContextOwnAircraft::updateOwnAircraft(const BlackMisc::Aviation::CAircraft &aircraft, const QString &originator) { - if (this->getRuntime()->isSlotLogForOwnAircraftEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, ownAircraft().toQString(), originator); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, { ownAircraft().toQString(), originator }); // trigger the correct signals bool changedCockpit = this->updateOwnCockpit(aircraft.getCom1System(), aircraft.getCom2System(), aircraft.getTransponder(), originator); @@ -122,7 +122,7 @@ namespace BlackCore */ bool CContextOwnAircraft::updateOwnPosition(const BlackMisc::Geo::CCoordinateGeodetic &position, const BlackMisc::Aviation::CAltitude &altitude, const QString &originator) { - if (this->getRuntime()->isSlotLogForOwnAircraftEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, position.toQString(), altitude.toQString(), originator); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, { position.toQString(), altitude.toQString(), originator }); bool changed = (this->m_ownAircraft.getPosition() != position); if (changed) this->m_ownAircraft.setPosition(position); @@ -145,7 +145,7 @@ namespace BlackCore */ bool CContextOwnAircraft::updateOwnSituation(const BlackMisc::Aviation::CAircraftSituation &situation, const QString &originator) { - if (this->getRuntime()->isSlotLogForOwnAircraftEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, situation.toQString()); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, situation.toQString()); bool changed = this->m_ownAircraft.getSituation() != situation; if (!changed) return changed; @@ -163,7 +163,7 @@ namespace BlackCore */ bool CContextOwnAircraft::updateOwnCockpit(const BlackMisc::Aviation::CComSystem &com1, const BlackMisc::Aviation::CComSystem &com2, const BlackMisc::Aviation::CTransponder &transponder, const QString &originator) { - if (this->getRuntime()->isSlotLogForOwnAircraftEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, com1.toQString(), com2.toQString(), transponder.toQString()); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, { com1.toQString(), com2.toQString(), transponder.toQString() }); bool changed = this->m_ownAircraft.hasChangedCockpitData(com1, com2, transponder); if (changed) { @@ -185,7 +185,7 @@ namespace BlackCore void CContextOwnAircraft::setAudioOutputVolumes(int outputVolumeCom1, int outputVolumeCom2) { - if (this->getRuntime()->isSlotLogForOwnAircraftEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, QString::number(outputVolumeCom1), QString::number(outputVolumeCom2)); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, { QString::number(outputVolumeCom1), QString::number(outputVolumeCom2) }); CComSystem com1 = this->m_ownAircraft.getCom1System(); com1.setVolumeOutput(outputVolumeCom1); @@ -215,7 +215,7 @@ namespace BlackCore */ void CContextOwnAircraft::setAudioVoiceRoomOverrideUrls(const QString &voiceRoom1Url, const QString &voiceRoom2Url) { - if (this->getRuntime()->isSlotLogForOwnAircraftEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, voiceRoom1Url, voiceRoom2Url); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, { voiceRoom1Url, voiceRoom2Url }); this->m_voiceRoom1UrlOverride = voiceRoom1Url.trimmed(); this->m_voiceRoom2UrlOverride = voiceRoom2Url.trimmed(); @@ -227,7 +227,7 @@ namespace BlackCore */ void CContextOwnAircraft::enableAutomaticVoiceRoomResolution(bool enable) { - if (this->getRuntime()->isSlotLogForOwnAircraftEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, enable); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, enable); this->m_automaticVoiceRoomResolution = enable; } @@ -236,7 +236,7 @@ namespace BlackCore */ CAircraft CContextOwnAircraft::getOwnAircraft() const { - if (this->getRuntime()->isSlotLogForOwnAircraftEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, this->m_ownAircraft.toQString()); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, this->m_ownAircraft.toQString()); return this->m_ownAircraft; } diff --git a/src/blackcore/context_ownaircraft_impl.h b/src/blackcore/context_ownaircraft_impl.h index e0267c67e..d853b7118 100644 --- a/src/blackcore/context_ownaircraft_impl.h +++ b/src/blackcore/context_ownaircraft_impl.h @@ -79,6 +79,8 @@ namespace BlackCore void ps_changedAtcStationOnlineConnectionStatus(const BlackMisc::Aviation::CAtcStation &atcStation, bool connected); private: + static const auto c_logContext = CRuntime::LogForOwnAircraft; + BlackMisc::Aviation::CAircraft m_ownAircraft; //!< my aircraft bool m_automaticVoiceRoomResolution; //!< voice room override QString m_voiceRoom1UrlOverride; //!< overridden voice room url diff --git a/src/blackcore/context_runtime.cpp b/src/blackcore/context_runtime.cpp index 4748c3a84..d06db9f4d 100644 --- a/src/blackcore/context_runtime.cpp +++ b/src/blackcore/context_runtime.cpp @@ -247,15 +247,6 @@ namespace BlackCore qDebug() << "signal" << s << values; } - void CRuntime::logSlot(const char *func, const QString &p1, const QString &p2, const QString &p3, const QString &p4) const - { - if (p1.isEmpty()) { qDebug() << func; return; } - if (p2.isEmpty()) { qDebug() << func << p1; return; } - if (p3.isEmpty()) { qDebug() << func << p1 << p2; return; } - if (p4.isEmpty()) { qDebug() << func << p1 << p2 << p3; return; } - qDebug() << func << p1 << p2 << p3 << p4; - } - void CRuntime::logSlot(const char *func, const QString ¶m) const { qDebug() << func << param; diff --git a/src/blackcore/context_runtime.h b/src/blackcore/context_runtime.h index 6539b856f..8e21d81c3 100644 --- a/src/blackcore/context_runtime.h +++ b/src/blackcore/context_runtime.h @@ -190,19 +190,6 @@ namespace BlackCore //! \threadsafe bool isSlotLogEnabledFor(LogContext context) const; - //! Slot logging - //! \deprecated Use a brace-initialized QStringList - void logSlot(const char *func, const QString ¶m, const QString &p2, const QString &p3 = "", const QString &p4 = "") const; - - //! Slot logging - void logSlot(const char *func, const QString ¶m = "") const; - - //! Slot logging - void logSlot(const char *func, const QStringList ¶ms) const; - - //! Slot logging for bool value - void logSlot(const char *func, bool boolValue) const; - //! Slot logging from a specific context void logSlot(LogContext ctx, const char *func, const QString ¶m = "") const; @@ -352,6 +339,15 @@ namespace BlackCore //! disconnect log signals (connected via connection to log them) void disconnectLogSignals(const QString &name); + + //! Slot logging + void logSlot(const char *func, const QString ¶m = "") const; + + //! Slot logging + void logSlot(const char *func, const QStringList ¶ms) const; + + //! Slot logging for bool value + void logSlot(const char *func, bool boolValue) const; }; } #endif // guard diff --git a/src/blackcore/context_simulator_impl.cpp b/src/blackcore/context_simulator_impl.cpp index 25d32ecb9..d1fa22d57 100644 --- a/src/blackcore/context_simulator_impl.cpp +++ b/src/blackcore/context_simulator_impl.cpp @@ -51,42 +51,42 @@ namespace BlackCore bool CContextSimulator::isConnected() const { - if (this->getRuntime()->isSlotLogForSimulatorEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); if (!m_simulator) return false; return m_simulator->isConnected(); } bool CContextSimulator::canConnect() { - if (this->getRuntime()->isSlotLogForSimulatorEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); if (!m_simulator) return false; return m_simulator->canConnect(); } bool CContextSimulator::connectTo() { - if (this->getRuntime()->isSlotLogForSimulatorEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); if (!m_simulator) return false; return m_simulator->connectTo(); } void CContextSimulator::asyncConnectTo() { - if (this->getRuntime()->isSlotLogForSimulatorEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); if (!m_simulator || m_canConnectResult.isRunning()) return; // already checking m_simulator->asyncConnectTo(); } bool CContextSimulator::disconnectFrom() { - if (this->getRuntime()->isSlotLogForSimulatorEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); if (!m_simulator) return false; return m_simulator->disconnectFrom(); } BlackSim::CSimulatorInfo CContextSimulator::getSimulatorInfo() const { - if (this->getRuntime()->isSlotLogForSimulatorEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO); + this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO); if (!m_simulator) return BlackSim::CSimulatorInfo::UnspecifiedSim(); return m_simulator->getSimulatorInfo(); } diff --git a/src/blackcore/context_simulator_impl.h b/src/blackcore/context_simulator_impl.h index fc1465fac..b1b42e441 100644 --- a/src/blackcore/context_simulator_impl.h +++ b/src/blackcore/context_simulator_impl.h @@ -122,6 +122,8 @@ namespace BlackCore void ps_textMessagesReceived(const BlackMisc::Network::CTextMessageList &textMessages); private: + static const auto c_logContext = CRuntime::LogForSimulator; + //! \brief find and catalog all simulator plugins void findSimulatorPlugins();