basysKom Application Development Services

Qt OPC UA: Logging improvements in Qt 6.1
Essential Summary
So far programs using Qt OPC UA with the open62541 back-end produced quite a bit of chatter on stdout originating from the open62541 stack itself. Unfortunately there was no simple way to get rid of these low-level logs. We now provide a way to control this behavior.
Professional Qt OPC UA Support?

Are you in need of professional support using Qt OPC UA?

Professional Qt OPC UA Support?

We support you with your project.
  • Maintainers of the Qt OPC UA module.
  • Commercial support partner of open62541.
  • Partner of UMATI.
Take advantage of our experience from numerous successful projects!

Background

Qt OPC UA itself uses Qt Categorized Logging internally. We document the logging categories here. So where does all this chatter come from? The open62541 stack has its own logging mechanism which is used to provide some insight into the stack itself. A plugin API allows to customize where this output is sent to. The default implementation, which we used so far, writes everything to stdout.

The new approach

As we did not just want to mute the open62541 output, potentially losing important information, we wrote a small plugin for the open62541 logging API to redirect the low-level open62541 output into a set of additional logging categories, all under the common qt.opcua.plugins.open62541.sdk prefix. To e.g. completely silence the low-level logs you would set “qt.opcua.plugins.open62541.sdk.*=false” as a filter.

Please have a look at the commit itself for the new categories. Updated documentation will be available with the Qt 6.1 release.

Picture of Frank Meerkötter

Frank Meerkötter

Frank Meerkoetter is the Development Lead for basysKom GmbH, where he is consulting customers on industrial and embedded applications, often in combination with Qt. He is responsible for the technical consulting, system- and software-architecture within basysKom. He used to be the the maintainer of Qt OPC UA (2017-2024) and a contributor to the Qt project. He has a strong background in Embedded Linux, systems programming, distributed systems and application development. He holds a Master of Computer Science from the University of Applied Sciences in Darmstadt.

Leave a Reply

Your email address will not be published. Required fields are marked *

More Blogarticles

basysKom Newsletter

We collect only the data you enter in this form (no IP address or information that can be derived from it). The collected data is only used in order to send you our regular newsletters, from which you can unsubscribe at any point using the link at the bottom of each newsletter. We will retain this information until you ask us to delete it permanently. For more information about our privacy policy, read Privacy Policy