You are here: Part 3: Advanced Concepts > Troubleshooting > Controlling Messages from Connext DDS > Customizing the Handling of Generated Log Messages

Customizing the Handling of Generated Log Messages

By default, the log messages generated by Connext DDS are sent to the standard output. You can redirect the log messages to a file by using the set_output_file() operation,

To further customize the management of the generated log messages, you can use the Logger’s set_output_device() operation to install a user-defined logging device. The logging device must implement an interface with two operations: write() and close().

Connext DDS will call the write() operation to write a new log message to the input device. The log message provides the text and the verbosity corresponding to the message.

Connext DDS will call the close() operation when the logging device is uninstalled.

Note: It is not safe to make any calls to the Connext DDS core library including calls to DDS_DomainParticipant_get_current_time() from any of the logging device operations.

For additional details on user-defined logging devices, see the API Reference HTML documentation (under Modules, RTI Connext DDS API Reference, Configuration Utilities).

© 2017 RTI