diff --git a/lib/System/System.cpp b/lib/System/System.cpp index e074745..18b89d4 100644 --- a/lib/System/System.cpp +++ b/lib/System/System.cpp @@ -38,3 +38,7 @@ bool System::isWifiEthConnected() const { void System::connectedViaWifiEth(bool status) { _isWifiEthConnected = status; } + +logging::Logger &System::getLogger() { + return _logger; +} diff --git a/src/LoRa_APRS_iGate.cpp b/src/LoRa_APRS_iGate.cpp index 4171138..d795da2 100644 --- a/src/LoRa_APRS_iGate.cpp +++ b/src/LoRa_APRS_iGate.cpp @@ -47,6 +47,7 @@ RouterTask routerTask(fromModem, toModem, toAprsIs, toMQTT); void setup() { Serial.begin(115200); LoRaSystem.getLogger().setSerial(&Serial); + setWiFiLogger(&LoRaSystem.getLogger()); delay(500); LoRaSystem.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_INFO, MODULE_NAME, "LoRa APRS iGate by OE5BPA (Peter Buchegger)"); LoRaSystem.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_INFO, MODULE_NAME, "Version: %s", VERSION);