Logging
- Last UpdatedFeb 05, 2025
- 2 minute read
The OPCUA driver can log combinations of trace levels across different categories. This is achieved by setting the following INI parameters.
[OPCUA]DebugLevel
This parameter allows you to define the trace level. The options include:
|
WARN |
Output warning messages. |
|
ERROR |
Output error messages. |
|
TRACE |
Output trace messages. |
|
DEBUG |
Output debug messages. |
|
ALL |
All of the above. |
[OPCUA]DebugCategory
This parameter allows you to enable logging for a particular category of trace. The options include:
|
PROT |
Operations related to the OPC protocol interface |
|
DCB |
Front end driver trace |
|
BEND |
Operations related to the back-end thread of the driver |
|
MISC |
Miscellaneous operations |
|
ALL |
All of the above |
In both cases, you can use ALL or any combination of the available options separated by a pipe character ( | ).
Example
[OPCUA]
DebugLevel=WARN|ERROR|TRACE
DebugCategory=ALL
In most cases, you can set the DebugLevel and DebugCategory parameters to ALL. If this results in a large, cumbersome log file that causes older data to be overwritten, you can consider refining the debug options.
Note: These parameters do not have a value specified by default. To enable logging for this driver, you need to manually configure these parameters in your INI file.
The events generated by the OPCUA driver are logged in the following Plant SCADA syslog file:
syslog.IOServer.<Cluster name>.<IO Server name>.dat
This file is located in the directory specified by the Citect.ini parameter [CtEdit]Logs. By default, this location will be:
%PROGRAMDATA%\AVEVA Plant SCADA <VersionNumber>\Logs
The size of the syslog file and its rollover process is configured via the [Debug]SysLogSize and [Debug]SysLogArchive INI parameters. For more information, see the topic Debug Parameters in the Plant SCADA documentation.