RTI Connext Traditional C++ API Version 7.3.0
|
Configure how much debugging information is reported during runtime and where it is logged. More...
Modules | |
Activity Context | |
Add contextual information to log messages. | |
Classes | |
struct | NDDS_Config_LogMessage |
Log message. More... | |
class | NDDSConfigLoggerDevice |
<<interface>> Logging device interface. Use for user-defined logging devices. More... | |
class | NDDSConfigLogger |
<<interface>> The singleton type used to configure RTI Connext logging. More... | |
Configure how much debugging information is reported during runtime and where it is logged.
The verbosities at which RTI Connext diagnostic information is logged.
enum NDDS_Config_LogLevel |
Level category assigned to RTI Connext log messages returned to an output device.
Syslog level category assigned to RTI Connext log messages. See Syslog Level and Verbosity Mapping, in the Core Libraries User's Manual, for more information.
Enumerator | |
---|---|
NDDS_CONFIG_SYSLOG_LEVEL_EMERGENCY | System is unusable. Maps to NDDS_CONFIG_LOG_LEVEL_FATAL_ERROR. |
NDDS_CONFIG_SYSLOG_LEVEL_ALERT | Should be corrected immediately. Maps to NDDS_CONFIG_LOG_LEVEL_ERROR. |
NDDS_CONFIG_SYSLOG_LEVEL_CRITICAL | Critical conditions. Maps to NDDS_CONFIG_LOG_LEVEL_ERROR. |
NDDS_CONFIG_SYSLOG_LEVEL_ERROR | Error conditions. Maps to NDDS_CONFIG_LOG_LEVEL_ERROR. |
NDDS_CONFIG_SYSLOG_LEVEL_WARNING | May indicate that an error will occur if action is not taken. Maps to NDDS_CONFIG_LOG_LEVEL_WARNING. |
NDDS_CONFIG_SYSLOG_LEVEL_NOTICE | Events that are unusual, but not error conditions. Maps to NDDS_CONFIG_LOG_LEVEL_STATUS_LOCAL. |
NDDS_CONFIG_SYSLOG_LEVEL_INFORMATIONAL | Normal operational messages that require no action. Maps to NDDS_CONFIG_LOG_LEVEL_STATUS_LOCAL. |
NDDS_CONFIG_SYSLOG_LEVEL_DEBUG | Information useful to developers for debugging the application. Maps to NDDS_CONFIG_LOG_LEVEL_DEBUG. |
Categories of logged messages.
The NDDSConfigLogger::get_verbosity_by_category and NDDSConfigLogger::set_verbosity_by_category can be used to specify different verbosities for different categories of messages.
Enumerator | |
---|---|
NDDS_CONFIG_LOG_CATEGORY_PLATFORM | Log messages pertaining to the underlying platform (hardware and OS) on which RTI Connext is running are in this category. |
NDDS_CONFIG_LOG_CATEGORY_COMMUNICATION | Log messages pertaining to data serialization and deserialization and network traffic are in this category. |
NDDS_CONFIG_LOG_CATEGORY_DATABASE | Log messages pertaining to the internal database in which RTI Connext objects are stored are in this category. |
NDDS_CONFIG_LOG_CATEGORY_ENTITIES | Log messages pertaining to local and remote entities, and to a subset of the discovery process, are in this category. (To see all discovery-related messages, use the DISCOVERY category.) |
NDDS_CONFIG_LOG_CATEGORY_API | Log messages pertaining to the API layer of RTI Connext (such as method argument validation) are in this category. |
NDDS_CONFIG_LOG_CATEGORY_DISCOVERY | Log messages pertaining to discovery are in this category. |
NDDS_CONFIG_LOG_CATEGORY_SECURITY | Log messages pertaining to security are in this category. These messages include any messages logged by RTI Connext components even if they are not related to the Security Plugins. |
NDDS_CONFIG_LOG_CATEGORY_USER | Log messages that are generated by the user using the following log APIs: NDDSConfigLogger::emergency, NDDSConfigLogger::alert, NDDSConfigLogger::critical, NDDSConfigLogger::error, NDDSConfigLogger::warning, NDDSConfigLogger::notice, NDDSConfigLogger::informational, NDDSConfigLogger::debug. |
NDDS_CONFIG_LOG_CATEGORY_ALL | Log messages pertaining to all categories in RTI Connext. |
The format used to output RTI Connext diagnostic information.
Enumerator | |
---|---|
NDDS_CONFIG_LOG_PRINT_FORMAT_DEFAULT | (default) Print message, method name, log level, Activity Context (what was happening when the event occurred), and logging category. |
NDDS_CONFIG_LOG_PRINT_FORMAT_TIMESTAMPED | Print message, method name, log level, Activity Context, logging category, and timestamp. |
NDDS_CONFIG_LOG_PRINT_FORMAT_VERBOSE | Print message with all available context information (includes thread identifier, message location). |
NDDS_CONFIG_LOG_PRINT_FORMAT_VERBOSE_TIMESTAMPED | Print message with all available context information, and timestamp. |
NDDS_CONFIG_LOG_PRINT_FORMAT_DEBUG | Print a set of fields (including message number and backtrace information) that may be useful for internal debugging. |
NDDS_CONFIG_LOG_PRINT_FORMAT_MINIMAL | Print only message number and message location. |
NDDS_CONFIG_LOG_PRINT_FORMAT_MAXIMAL | Print all available fields. |
A number that identifies the source of a log message.
In the Syslog Protocol, the Facility is a numerical code that represents the machine process that created a Syslog event. RTI Connext uses the facility to represent the source of a given log message.
Enumerator | |
---|---|
NDDS_CONFIG_LOG_FACILITY_USER | A log message produced by the APIs that log user messages in NDDSConfigLogger (e.g, NDDSConfigLogger::emergency). Numerical code: 1 |
NDDS_CONFIG_LOG_FACILITY_SECURITY_EVENT | A security-related message logged by the RTI Security Plugins Logging Plugin. Numerical code: 10 |
NDDS_CONFIG_LOG_FACILITY_SERVICE | A log message produced by an Infrastructure Service, such as Routing Service. Infrastructure Services operate using the Core Libraries. The messages that the Core Libraries create are categorized under the MIDDLEWARE facility. Log messages that are directly generated by the Infrastructure Service itself are marked with the SERVICE facility. Numerical code: 22 |
NDDS_CONFIG_LOG_FACILITY_MIDDLEWARE | A log message produced by RTI Connext Core Libraries. Numerical code: 23 |
The Syslog verbosities at which RTI Connext diagnostic information is logged. These Syslog verbosities are mapped to NDDS_Config_LogVerbosity. See Syslog Level and Verbosity Mapping, in the Core Libraries User's Manual, for more information.
Enumerator | |
---|---|
NDDS_CONFIG_SYSLOG_VERBOSITY_SILENT | No messages will be logged. (lowest verbosity) Equivalent to NDDS_CONFIG_LOG_VERBOSITY_SILENT. |
NDDS_CONFIG_SYSLOG_VERBOSITY_EMERGENCY | Emergency, critical, alert, and error messages will be logged. This Syslog verbosity level is translated to NDDS_CONFIG_LOG_VERBOSITY_ERROR when interpreted by RTI Connext. (That's why this level actually logs more than just emergency messages.) |
NDDS_CONFIG_SYSLOG_VERBOSITY_ALERT | Emergency, critical, and alert messages will be logged. This Syslog verbosity level is translated to NDDS_CONFIG_LOG_VERBOSITY_ERROR when interpreted by RTI Connext. (That's why this level actually logs more than just emergency, critical and alert messages.) |
NDDS_CONFIG_SYSLOG_VERBOSITY_CRITICAL | Emergency, critical, alert, and error messages will be logged. This Syslog verbosity level is translated to NDDS_CONFIG_LOG_VERBOSITY_ERROR when interpreted by RTI Connext. (That's why this level actually logs more than just emergency and critical messages.) |
NDDS_CONFIG_SYSLOG_VERBOSITY_ERROR | Emergency, critical, alert, and error messages will be logged. This Syslog verbosity level is translated to NDDS_CONFIG_LOG_VERBOSITY_ERROR when interpreted by RTI Connext. |
NDDS_CONFIG_SYSLOG_VERBOSITY_WARNING | Emergency, critical, alert, error, and warning messages will be logged. This Syslog verbosity level is translated to NDDS_CONFIG_LOG_VERBOSITY_WARNING when interpreted by RTI Connext. |
NDDS_CONFIG_SYSLOG_VERBOSITY_NOTICE | Emergency, critical, alert, error, warning, notice and informational messages will be logged. This Syslog verbosity level is translated to NDDS_CONFIG_LOG_VERBOSITY_STATUS_REMOTE when interpreted by RTI Connext. (That's why this level actually logs more than just emergency, critical, alert, error, warning and notice messages.) |
NDDS_CONFIG_SYSLOG_VERBOSITY_INFORMATIONAL | Emergency, critical, alert, error, warning, notice, and informational messages will be logged. This Syslog verbosity level is translated to NDDS_CONFIG_LOG_VERBOSITY_STATUS_REMOTE when interpreted by RTI Connext. |
NDDS_CONFIG_SYSLOG_VERBOSITY_DEBUG | All messages will be logged. This Syslog verbosity level is translated to NDDS_CONFIG_LOG_VERBOSITY_STATUS_ALL when interpreted by RTI Connext. |