Reporting and tracing¶
Eclipse Cyclone DDS can produce highly detailed traces of all traffic and internal activities. It enables individual categories of information and a simple verbosity level that enables fixed sets of categories.
All fatal and error messages are written both to the trace and to the
cyclonedds-error.log
file.
All “warning” messages are written to the trace and the cyclonedds-info.log
file.
The Tracing element has the following sub elements:
Verbosity
EnableCategory
Whether these logging levels are set in the verbosity level or by enabling the corresponding categories is immaterial.
Verbosity¶
Selects a tracing level by enabling a pre-defined set of categories. The following table lists the known tracing levels, and the categories they enable:
|
|
|
|
|
|
|
Writes the complete configuration to the trace file and any warnings or errors, which can be an effective method to verify that everything is configured and behaving as expected. |
|
Adds the complete discovery information in the trace (but nothing related to application data or protocol activities). If a system has a stable topology, this typically results in a moderate size trace. |
|
|
|
Provides a detailed trace of everything that occurs and is an indispensable source of information when analysing problems. However, it also requires a significant amount of time and results in very large log files. |
EnableCategory¶
This is a comma-separated list of keywords. Each keyword enables individual categories. The following keywords are recognised:
|
All fatal errors, errors causing immediate termination. |
|
Failures probably impacting correctness but not necessarily causing immediate termination. |
|
Abnormal situations that will likely not impact correctness. |
|
Full dump of the configuration. |
|
General informational notices. |
|
All discovery activity. |
|
Include data content of samples in traces. |
|
Periodic reporting of CPU loads per thread. |
|
Periodic reporting of total outgoing data. |
|
Connection and connection cache management for the TCP support. |
|
Throttling events where the Writer stalls because its WHC hit the high-water mark. |
|
Detailed information on topic interpretation (in particular topic keys). |
|
Dumping of parameter lists encountered in discovery and inline QoS. |
|
Receive buffer administration. |
|
Very detailed tracing of WHC content management. |
The keyword trace enables all categories from fatal to throttle.
The topic and plist categories are useful only for particular classes of discovery failures.
The radmin and whc categories only help in analysing the detailed behaviour of those two components and produce significant amounts of output.
The file location is set in the configuration: OutputFile
To append to the trace instead of replacing the file, set:
AppendToFile to true