RTI Connext Modern C++ API  Version 6.1.1

Add contextual information to log messages. More...

Classes

class  rti::config::activity_context::AttributeKindMask
 The attributes used in the string representation of the Activity Context can be configured through this mask. More...
 

Functions

void rti::config::activity_context::set_attribute_mask (AttributeKindMask attribute_mask)
 Set the ActivityContextAttributeKindMask of the Activity Context. More...
 

Detailed Description

Add contextual information to log messages.

The Activity Context is a group of resources and activities associated with an action such as the creation of an entity.

Logging context is one of the formats RTI Connext logging infrastructure supports. It is used by default in PrintFormat::DEFAULT. It provides information about resources and activities. The activity context is used in two places:

For example, in the creation of a DataWriter, the activity context will provide information about:

The string representation of the above activity context would be:

[0X101A76B,0X79E5D71,0X50EE914:0X1C1:0X80000088{E=Pu,N=TestPublisher,D=1}|CREATE Writer WITH TOPIC TestTopic]

Another example could be when a DataWriter writes a sample. The activity context will provide information about:

The string representation of the activity context will be:

[0X101A76B,0X79E5D71,0X50EE914:0X1C1:0X80000003{N=testDataWriterName,E=DW,T=test,C=Foo,D=1}|Write]

Function Documentation

◆ set_attribute_mask()

void rti::config::activity_context::set_attribute_mask ( AttributeKindMask  attribute_mask)

Set the ActivityContextAttributeKindMask of the Activity Context.

Set the AttributeKindMask of the Activity Context.

Referenced by rti::config::activity_context::AttributeKindMask::all().