Logging

LisRT uses the NLog-Framework for logging. The NLog.config file determines how, what, when and where to log. The file is located within the LisRT folder structure under LisRT\Workspace\Configuration\.
You can find the complete documentation at NLog-Wiki. The configuration is already set to log to a CSV file and to a Live Viewer.

Pay attention to configure the minimum logging level to minlevel=Info while you are in production operation. Otherwise, too much data will be generated over a longer period of time.
Section with the logging rules in the NLog.config file
<rules>
  <logger name="*" (1)
          minlevel="Info" (2)
          writeTo="console,CsvLog,LiveViewer"/> (3)
</rules>
1 * means this rule is valid for all loggers
2 From logging level Info onwards, everything is logged; lower-priority logging entries with the levels Trace and Debug are not recorded
3 It is logged into the console, the CSV file and the Live Viewer

Logazmic

As a Live Log Viewer Logazmic can be used.

After starting Logazmic a UDP receiver must be added by clicking on the plus at the top. Enter 7071 as the port.
Live Viewers (such as Logazmic) work via UDP or TCP. Under certain circumstances the firewall may have to be configured accordingly.

Device communication in LisRT

Alternatively, the unit communication can also be tracked from the LisRT application. The Main Menu  View  Communication Log opens the window for the device communication.

communicationLog en
Figure 1. Device communication
Activate the property CommunicationLogIsEnabled in the LisRT configuration file (.config file) for the respective communication driver.