[Companion] Add optional logging of all debug output. (#4974)
commitf50ee3fb39f5b6fb8d23d94ec4292145b415deb8
authorMax Paperno <mpaperno@users.noreply.github.com>
Sat, 10 Jun 2017 21:33:03 +0000 (10 17:33 -0400)
committerBertrand Songis <bsongis@gmail.com>
Sat, 10 Jun 2017 21:33:03 +0000 (10 23:33 +0200)
tree508b793d81d7037aa3a68238e36d0b6e91367afd
parent2e4775b19a0a949cf6b50d293ba21ac906fc0f9b
[Companion] Add optional logging of all debug output. (#4974)

* [AppDebugMessageHandler] Add ability to write debug output to any number of QIODevices.

* [Simulator][DebugOutput] Use new QIODevice hook in AppDebugMessageHandler instead of signal/slot.

* [AppData] Add new settings for debug logging; Refactor property creation macro to work with any data type and add varName_init() method to set default; Refactor all boolean settings to use new macro (others to be migrated later).

* [AppPreferencesDialog] Add UI for appDebugLog, fwTraceLog, & appLogsDir settings; Clean up layout on application prefs. tab, move and re-label a couple items.

* [Companion][Simulator] Enable optional application debug output logging.

* [Simulator] Enable optional logging of firmware debug output to file.

* [EEPROMInterface] Use qDebug() instead of std::cout so that now all debug output can be routed via custom message handler/logger.

* [Companion][Simulator] Add missing #include.
16 files changed:
companion/src/appdebugmessagehandler.cpp
companion/src/appdebugmessagehandler.h
companion/src/apppreferencesdialog.cpp
companion/src/apppreferencesdialog.h
companion/src/apppreferencesdialog.ui
companion/src/companion.cpp
companion/src/firmwares/er9x/er9xinterface.cpp
companion/src/firmwares/ersky9x/ersky9xinterface.cpp
companion/src/firmwares/opentx/opentxinterface.cpp
companion/src/simulation/debugoutput.cpp
companion/src/simulation/debugoutput.h
companion/src/simulation/simulatormainwindow.cpp
companion/src/simulation/simulatormainwindow.h
companion/src/simulator.cpp
companion/src/storage/appdata.cpp
companion/src/storage/appdata.h