RTI Connext Modern C++ API
Version 7.0.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... | |
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:
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:
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().