RTI Connext Modern C++ API Version 7.2.0

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_def::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{Entity=Pu,Name=TestPublisher,Domain=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{Name=testDataWriterName,Entity=DW,Topic=test,Type=Foo,Domain=1}|Write]
An example topic-type.
Definition: types.dxx:34

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.