Write to System Log

Writes a message either for storage and subsequent viewing. The message is written to the nierrlog system log for non-web applications or the browser console or the G Web Development output window for WebVIs.

1378

Inputs/Outputs

datatype_icon

message

The text to write to the system log or browser console.

datatype_icon

severity

The classification of the message this node writes to the system log or browser console.

Error 0 Classifies the message as an error.
Warning 1 Classifies the message as a warning.
Informational 2 Classifies the message as informational text.

Default value: 0 — Error

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Default value: No error

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Accessing Log Data

View logs using Windows Event Viewer.

To create a file of logs generated in NXG, open Windows Event Viewer. Select Windows Logs » Applications to view all application logs. Select Filter Current Log in the Actions. Under the filter tab in the dialog, click on Event Sources and select National Instruments. Click OK. In the actions pane, select Save Filtered Log File As... to save a copy of the logs.

Logging Data to the Browser Console

Write to System Log uses the Console API to log error information to the console of the browser.
Note See the Mozilla Developer Network (MDN) documentation for more information about the Console API.