dwLogger callback error+question

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.2.10884
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

While trying to log messages using the dwLogger as described in the documentation, I get this error:

error: too few arguments to function ‘void plotting_callback(dwContextHandle_t, dwLoggerVerbosity, const char*)’
505 | dwLogger_initialize(plotting_callback());

What is the correct syntax for setting a callback for the logger?

Additionally, what is contained in the ‘msg’ part of the dwLoggerMessage that the logger sends?

Dear @stefan65,
I notice the DW samples are using the call back functions(getConsoleLoggerCallback/getConsoleLoggerExtendedCallback) at samples/framework/Log.cpp . You may use it as reference to implement your logging function.
In your case, plotting_callback() is called with no parameters where as the function defined with 3 parameters.

The msg contains the actual message that needs to print to log.

Dear @stefan65,
Any update can be provided on this issue?
Could you check with dwLogger_initialize(plotting_callback) and confirm if it works?

It does not seem to work. According to the documentation in the Logging Tutorial, it is to be called with no arguments: DriveWorks SDK Reference: Logging
Could we get some updated documentation on this topic?

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Dear @stefan65,
Could you tell what did not work? Is dwLogger_initialize(plotting_callback) did not help?