Messaging features
- Last UpdatedOct 28, 2022
- 1 minute read
PI SQL Data Access Server Trace
PI SQL DAS optionally allows to generate logging information. To enable this feature add the following or similar section to the PiSqlDas.Integrator.exe.config file:
<system.diagnostics>
<trace autoflush="true">
<listeners>
<clear/>
<!-- Debug output -->
<add name="Default" type="System.Diagnostics.DefaultTraceListener"/>
<!-- Event log (logs only errors) -->
<add name="EventLog" type="System.Diagnostics.EventLogTraceListener"
initializeData="PI SQL DAS INTEGRATORS">
<filter type="System.Diagnostics.EventTypeFilter" initializeData="Error"
/>
</add>
<!-- Text file-->
<add name="TextFile" type="System.Diagnostics.TextWriterTraceListener"
traceOutputOptions="DateTime" initializeData="C:\Temp\PI_SQL_DAS_INTEGRATORS.log"/>
</listeners>
</trace>
</system.diagnostics>
Note: You can also direct output to other locations such as Windows Event Log or Console. For configuration details see How to: Create and Initialize Trace Listeners.