RTI Connext Traditional C++ API  Version 5.3.0
 All Classes Functions Variables Typedefs Enumerations Enumerator Groups Pages
NDDSConfigLoggerDevice Class Referenceabstract

<<interface>> Logging device interface. Use for user-defined logging devices. More...

Public Member Functions

virtual void write (const NDDS_Config_LogMessage *message)=0
 Write a log message to a specified logging device.
 
virtual void close ()
 Close the logging device.
 

Detailed Description

<<interface>> Logging device interface. Use for user-defined logging devices.

Interface for handling log messages.

By default, the logger sends the log messages generated by RTI Connext to the standard output.

You can use the method NDDSConfigLogger::set_output_file to redirect the log messages to a file.

To further customize the management of generated log messages, the logger offers the method NDDSConfigLogger::set_output_device that allows you to install a user-defined logging device.

The logging device installed by the user must implement this interface.

Note: It is not safe to make any calls to the RTI Connext core library, including calls to DDSDomainParticipant::get_current_time, from any of the logging device operations.

Member Function Documentation

virtual void NDDSConfigLoggerDevice::write ( const NDDS_Config_LogMessage message)
pure virtual

Write a log message to a specified logging device.

Note: It is not safe to make any calls to the RTI Connext core library, including calls to DDSDomainParticipant::get_current_time, from any of the logging device operations.

Parameters
message<<in>> Message to log.
virtual void NDDSConfigLoggerDevice::close ( )
virtual

Close the logging device.

Note: It is not safe to make any calls to the RTI Connext core library, including calls to DDSDomainParticipant::get_current_time, from any of the logging device operations.


RTI Connext Traditional C++ API Version 5.3.0 Copyright © Sun Jun 25 2017 Real-Time Innovations, Inc