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:
- Stop the OpcUaAdapter service.
- 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.
- Restart the OpcUaAdapter service.
- Check the contents of the file UaLog.txt in C:\Program Files (x86)\Siemens\SORIS OPC UA Adapter.
See also the following alternative solution:
- Open the OpcUaAdapter.Ua.Config.Xml file with an editor.
- Set the new TraceMasks value: the default value is 513. To trace ALL, set 1023. Then save the changes.
- Restart the OpcUaAdapter service.
- Check the contents of the file UaLog.txt in C:\Program Files (x86)\Siemens\SORIS OPC UA Adapter.