Enabling OPC UA Client Trace Logs

The OPC UA client trace log files are available in C:\Program Files (x86)\Siemens\SORIS OPC UA Adapter.

You can configure additional trace logs in line with the following bit mask values:

Hexadecimal Value

Decimal Value

Log Type

0x001

1

Error

0x002

2

Information

0x004

4

StackTrace

0x008

8

Service

0x010

16

ServiceDetail

0x020

32

Operation

0x040

64

OperationDetail

0x080

128

StartStop

0x100

256

ExternalSystem

0x200

512

Security

Do the following:

  1. Stop the OpcUaAdapter service.
  2. Navigate to C:\Program Files (x86)\Siemens\SORIS OPC UA Adapter, and do the following:
    a. Run the UaClientConfigHelperNet4.exe file as Administrator.
    b. Select the OpcUaAdapter.exe application, and in the UA Configuration Helper tool, click Edit UA Configuration.
    c. Click Change to modify the Trace Mask.
    d. Select the type of logs to enable and click Set.
    e. Click Save and Close.
  3. Restart the OpcUaAdapter service.
  4. In C:\Program Files (x86)\Siemens\SORIS OPC UA Adapter, check the content of the relevant TXT file (for example, [UaLog].txt or UaLog_[adapter service name].txt).

 

See also the following alternative solution:

  1. Open the OpcUaAdapter.Ua.Config.Xml file with an editor.
  2. Set the new TraceMasks value: the default value is 513.To trace ALL, set 1023. Then save the changes.
  3. Restart the OpcUaAdapter service.
  4. Check the contents of the log file (for example, [UaLog].txt or UaLog_[adapter service name].txt).