aboutsummaryrefslogtreecommitdiffstats
path: root/src/geniviextras/qdltregistration.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers to 2021Dominik Holland2021-06-021-9/+8
| | | | | | | Also removed all the SPDX tags and -QTAS license extensions. Change-Id: I06802ea7b48ad749db3a696e9ec598b4aec6892c Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Add API to unregister all DLT contextsBernd Weimer2020-03-091-1/+25
| | | | | | | | | The new API unregisters all logging categories and their associated DLT context Ids. This can be used to change log levels: set new rules and unregister all contexts. Change-Id: I1a21dd49d3e3b21fd6f58a2316c60a6f25b29586 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Merge remote-tracking branch 'origin/5.13' into 5.14Dominik Holland2020-01-171-0/+3
|\ | | | | | | Change-Id: I0a79176763ca001072d41f377869854e1982e4e7
| * geniviextras: Fix potential crash during Qt cleanup V2Kirill Mitrakhovich2019-09-231-0/+3
| | | | | | | | | | | | | | | | Access to static object pointer without checking. Object might be already destroyed. Change-Id: Ida459bc0e41f0b475293f2b69c44789f535df549 Reviewed-by: Bernd Weimer <bernd.weimer@pelagicore.com>
* | geniviextras: Add better handling for long messagesDominik Holland2019-10-101-1/+98
|/ | | | | | | | | | | | DLT silently drops too long messages and produces empty lines instead. This changes introduces a behavior enum which helps to configure geniviextras to truncate or split the long messages. Change-Id: I325c8e8da25c9456ee56d29bce0779b016c01917 Fixes: AUTOSUITE-1187 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Revert "geniviextras: Add better handling for long messages"v5.12.4_QtASDominik Holland2019-09-031-101/+1
| | | | | | | | | | | | This reverts commit 83720c2961b7af019643f5318d84a4ea443a5a87. This change was breaking SC and can't be released with a patch release. The change will be put into the dev branch instead. Task-number: AUTOSUITE-1187 Change-Id: Icfbf6e34dddbb93160681c97f53abef7915aba78 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* geniviextras: Fix potential crash during Qt cleanupDominik Holland2019-09-031-0/+3
| | | | | | | | | | | | During the Qt cleanup, some parts of QtCore are still using qDebug and friends to e.g. when QT_DEBUG_PLUGINS is set. Because of this the messageHandler might be called while the QDltRegistration is already destroyed. In this case the messageHandler can't log anymore, but it also shouldn't crash because of a nullptr access. Change-Id: I4d75acc5dfacca89d4876c13580c9d7bf2838f69 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* geniviextras: Make QDltRegistrator more thread-safeDominik Holland2019-08-301-11/+37
| | | | | | | | | Introduce a mutex to prevent issues when registering a new context/application while logging from another thread. Change-Id: I734b2a363ffe83fc9e9728898707cdefef689824 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* geniviextras: Add better handling for long messagesDominik Holland2019-08-301-1/+99
| | | | | | | | | | | | DLT silently drops too long messages and produces empty lines instead. This changes introduces a behavior enum which helps to configure geniviextras to truncate or split the long messages. Fixes: AUTOSUITE-1187 Change-Id: Ieece74a984460fb6c2fe603789361b59ada9df12 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* geniviextras: Implement the missing severity2dltLevel functionDominik Holland2019-08-301-13/+17
| | | | | | | The function was defined already before, but it didn't have an implementation. Change-Id: If234d83cbcd15bee6e24459c9bd27ff9d6ae05a2 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Remove check for registered DLT applicationBernd Weimer2019-03-181-2/+0
| | | | | | | | This allows to register a logging category before an application, which is permitted by the DLT API. Change-Id: Idfc2b4450c1369bca8a80294eccc148586bb6dc0 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Update copyright statementsRobert Griebl2018-12-171-0/+1
| | | | | | | | - added 2019 - everything is (c) Luxoft instead of Pelagicore from now on Change-Id: I4a6dbd46aaffbb90cea57626bd75e3972cea2cfc Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Clazy and clang-tidy fixesDominik Holland2018-04-191-2/+2
| | | | | | | Applied to all modules and the plugins Change-Id: Id1dd9adb4a9f5bdcd452242785439e118d63ef10 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Update all Pelagicore copyright headers to 2018Dominik Holland2018-01-161-1/+1
| | | | | Change-Id: I408c855d9619e20f481a592dc1f514b90af642f9 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* QtGeniviExtras: Make sure to only register the contexts onceDominik Holland2017-11-301-2/+14
| | | | | | | | | | | | Fixed a bug where contexts where registered with the dlt-daemon on every call instead of only once. Also added a GENIVIEXTRAS_DEBUG define to make debugging easier in the future. Task-number: AUTOSUITE-169 Change-Id: I359d989e28b96d8eefa3e6f8ec100c8a71f305ba Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Merge remote-tracking branch 'origin/5.9' into 5.10Dominik Holland2017-09-191-1/+1
|\ | | | | | | Change-Id: I61180ae3eb1e00490089ef6fb4deb29918766d87
| * Build fix for DLT < 2.12Dominik Holland2017-09-191-1/+1
| | | | | | | | | | | | | | Also made the configure output more clear Change-Id: Ic44b8ee26ec552415b8afef3b63389e90e21dfa4 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Fix issues found by clazyDominik Holland2017-04-051-3/+4
|/ | | | | | | Task-number: QTAUTO-319 Change-Id: I4f7bf0db4064cf7fd3e964d4e21057952fc23667 Reviewed-by: Vadim Popov <vadim.popov@pelagicore.com> Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
* Adds missing documentation for QtGeniviExtrasDominik Holland2017-02-101-2/+20
| | | | | Change-Id: Ia1a282bc3c251c998df2263c95a6717e741ccf90 Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com>
* Updated copyright headersDominik Holland2017-02-031-1/+1
| | | | | Change-Id: I3886fa569f304c509023db1226deb70d9af9eaa3 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Move qtivi over to the new config systemDominik Holland2017-02-011-1/+1
| | | | | | | | | | | | | | | | | Use the new configuration system to define external libraries, configure tests and features. Don't use pkg-config outside of the configuration step. The geniviextras-only CONFIG option has now been replaced with a command-line option and can be used by passing it to qmake after '--'. E.g. 'qmake -- --geniviextras-only'. Removed adding DLT into the rpath. Similar to all other Qt modules, it is now expected that packages found using pkg-config can be found by the dynamic linker. Change-Id: If46cd1b79413cd7571ee1068898848d9871e61ba Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Refactored the qdltregistrationDominik Holland2016-12-161-32/+46
| | | | | | | | The new code is less error prone and fully supports the lazy initialization of DLT Application and DLT contexts. Change-Id: I37165c0e6a02b9e8b54eb8c472b2c3b7baf0f4d9 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Make it possible to change the DLT appID and description once registeredDominik Holland2016-11-291-3/+29
| | | | | | | | | | | By unregistering and registering the app with the new appID it is possible to enforce a change of the appID. This is useful for applications/libraries which act as launchers where it is not clear what will be the final appID at compile-time. Change-Id: Id6dc8192e199e6366aa912dd37171ce3f7a698ef Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com> Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Merge branch '5.7' into devDominik Holland2016-11-231-0/+61
|\ | | | | | | Change-Id: I3feb8544b54c7e84970ae304ea5e8c44bcd30a46
| * Added Documentation for QtGeniviExtrasDominik Holland2016-11-091-0/+61
| | | | | | | | | | | | Change-Id: I827e18be98de9818df22048795bcb4bdb22668d1 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com>
* | QtGeniviExtras: Several DLT logging improvementsDominik Holland2016-11-091-15/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The DLT contexts are now registered with the log level matching the severity of the QtLoggingCategory, which is debug if nothing is specified. In addition it is now possible to delay the registration of the DLT context, until it is first used for logging. As an application might want to adapt the logging categories by parsing their own settings file. As DLT doesn't allow to change the log level from the client it's now possible to delay the creation until the client knows what loglevel is needed. The registerUnregisteredContexts() function can be used once all logging categories are defined, to forward the information to DLT. [ChangeLog] DLT context are now registered using the QtLoggingCategories severity Change-Id: I96cf0aa652b97a39b277718337cf1701388b1615 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Merge branch '5.7' into devDominik Holland2016-10-191-0/+3
|\| | | | | | | Change-Id: I5e601ba33cf50596f873e746e9b107a560c45018
| * DLT: Add more checks before trying to register the Logging CategoryDominik Holland2016-08-191-0/+3
| | | | | | | | | | | | | | | | | | We need to make sure that the DLT Application is registered before any category. Also it could happen that someone tries to register an empty LoggingCategory, which needs to be prevented Change-Id: I3c084ee4366cc6c21619e8c1d8642916799613e6 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Fixed coding style issuesDominik Holland2016-07-271-10/+6
|/ | | | | Change-Id: Ib1812eac61ffa163dd50eeacfc0097881ca277f4 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Renamed the classes and imports to match the Qt conventionsDominik Holland2016-05-241-1/+1
| | | | | | | | | | | | | | | | | | | QML: import QtIVICore 1.0 -> import QtIvi 1.0 import QtIVIVehicleFunctions 1.0 -> import QtIvi.VehicleFunctions 1.0 On C++ side: Includes: - #include <QtIviCore/QIviAbstractFeature> - #include <QtIviVehicleFunctions/QIviClimateControl> The renaming of the files will be done in separate commit to make the diffs easier to read Task-number: QTAUTO-40 Task-number: QTAUTO-41 Change-Id: I2efdaf1f4a15e09481532df1333fa9883e82d1fb Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com>
* Use the same license wording for GPL3 as the standard Qt 5.7 license.Robert Griebl2016-04-111-7/+8
| | | | | Change-Id: Id4a3c96495d97e666f0273671c231dbbd4beeaff Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix license headers to comply with Qt 5.7 standards.Robert Griebl2016-04-071-12/+18
| | | | | | | | | | | | | | | src -> LGPL3/GPL3/GPL2/Commercial tests -> GPL-EXCEPT examples -> BSD qdoc files -> FDL (or BSD if documenting examples) pro/pri files -> no copyright header Also removed the LGPL2.1 option from GeniviExtras, since it doesn't make sense anymore when linking against a LGPL3 only QtCore library. Change-Id: I9299cf86cf37c1dfbbe997686b624084f27c9149 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix geneiviextras to also work with a namespaced Qt buildDominik Holland2016-02-041-0/+4
| | | | | Change-Id: I06112c77eedc2985dc3748293721bf2c8d493afd Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Tweaked the header layout a little bit, so that it passes the CI check.Robert Griebl2015-11-241-7/+7
| | | | | | | | Also change-id I8ffe7bca in qtqa is needed for this to work. Change-Id: I5e749dda7f2179c27f078dea748e15cf1cc81e92 Reviewed-by: Marko Kangas <marko.kangas@theqtcompany.com> Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fixed version check to correctly check for dlt version 2.12Dominik Holland2015-08-141-1/+1
| | | | | DLT_REGISTER_LOG_LEVEL_CHANGED_CALLBACK is available with 2.12 not 2.11
* Added version detection of the installed dlt libraryDominik Holland2015-08-071-0/+3
| | | | | Only use DLT_REGISTER_LOG_LEVEL_CHANGED_CALLBACK when the dlt version is atleast 2.11.0
* Added a logLevelChanged signal to QDltRegistrationDominik Holland2015-08-061-4/+11
| | | | This enables the Developer to react on log level changes.
* Added support to handle DLTs control messagesDominik Holland2015-08-031-6/+61
| | | | | | | | Once we get a dlt control messages and the logLevel for a dlt context was changed the QtLoggingCategory will be updated as well. This makes it possible to use <LoogingCategory>().isDebugEnabled() for not performant operations to generate more debug output.
* Also support QtInfoMsg when using a Qt version >= 5.5Dominik Holland2015-08-031-1/+4
|
* Added SPDX identifier to files in source dir.Jeremiah C. Foster2015-07-141-0/+2
|
* Fixed placeholder in all license headers/filesDominik Holland2015-07-141-2/+2
|
* Changed License of all Files to LGPLv21 + ExceptionDominik Holland2015-07-131-10/+32
|
* First version of the QtGeniviExtras moduleDominik Holland2015-06-081-0/+105
This version contains helper macros which makes it easy to map QtLoggingCategories to DLT Categories and install a messagHandler which logs all messages using libdlt