Priority levels ("TraceLevel")
The following table shows the priority levels with decreasing priority from top to bottom.
Priority level | Meaning |
|---|---|
Always | Events with the "Always" priority level are always logged. |
Error | Events with the "Error" priority level either lead to an object error or prevent the TwinCAT runtime from starting. Errors must be processed. |
Warning | Events with the "Warning" priority level indicate potential errors (e.g. in the configuration). Warnings should not be ignored. |
Info | Events with the "Info" priority level provide additional information on normal runtime behavior. |
Verbose | "Verbose" events are very detailed and the corresponding "TraceLevel" should only be used in exceptional cases. |
If the priority of an event (or its log line) is higher than or equal to the priority set on the TcCOM object, then the corresponding log line is written to the output, otherwise, it is not. For example, all events with the "Info" priority are not logged if the set priotity level is "Warning" or "Error". If the priority level of the object is set to "Verbose", all possible events are logged. Conversely, events with the priority "Always" are always logged, regardless of the set priotity level.