Breadcrumbs

Niagara - Customizing log levels

This article explains how to customize the logs in Niagara N4 to observe the details of communication using any of the communication protocols. The article is based on Modbus TCP.

To customize log levels, right-click on Station and select Spy.

image-20220509-121959.png
Fig. 1 Selecting Spy from the list

In the Spy view, go to the logSetup. In the table find data to be customized, in this case ModbusTcpNetwork. The level of the collected logs should be set as FINE. After clicking on the appropriate [ ], the view will refresh.

1df9548a-248f-4175-b168-493ad97a87f4#media-blob-url=true&id=ce45776c-65e2-4abf-8262-5f4ecfc96985&contextId=120223&collection=
Obraz 2. Poziom logów w ‘ModbusTcpNetwork' dostosowany na ‘FINE’.

Logs will then be printed out in Platform/Application Director, with information what queries were sent to a particular registry and whether a response was received or what response was received from a particular registry.

image-20220509-122226.png
Fig. 3 Loga after adjusting the value in ModbusTcpNetwork to FINE.