The following example enables the diagnostics log on the XIA Automation Server.


# Enable diagnostics log.

$administration.DO_EnableTrace();


# Display the local path to the diagnostics log on the XIA Automation Server.

Write-Host $administration.GET_TraceLogPath();


# Display the contents of the diagnostics log.

Write-Host $administration.GET_TraceLogContents();