How to Enable OPC UA Client Trace Logs

It is possible to configure additional trace logs for the OPC UA Client in line with the following bit mask values:

Hexadecimal Value

Decimal Value

Log Type

0x001

1

Error

0x002

2

Information

0x004

4

Stack Trace

0x008

8

Service

0x010

16

Service Detail

0x020

32

Operation

0x040

64

Operation Detail

0x080

128

Start Stop

0x100

256

External System

0x200

512

Security

Do the following:

  1. Stop the OpcUaAdapter service.
  1. 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.
  1. Restart the OpcUaAdapter service.
  1. Check the contents of the file UaLog.txt in C:\Program Files (x86)\Siemens\SORIS OPC UA Adapter.

 

See also the following alternative solution:

  1. Open the OpcUaAdapter.Ua.Config.Xml file with an editor.
  1. Set the new TraceMasks value: the default value is 513. To trace ALL, set 1023. Then save the changes.
  1. Restart the OpcUaAdapter service.
  1. Check the contents of the file UaLog.txt in C:\Program Files (x86)\Siemens\SORIS OPC UA Adapter.