Share via


Configuring Event Logging for a DCS Service

The DCS runtime provides built-in support for logging events as a DCS service runs. To enable event logging, add the key eventLoggingEnabled with a value of true to the <appSettings> section of the configuration file for the service. The following code sample shows eventLoggingKey in the <appSettings> section.

<?xml version="1.0" encoding="utf=8"?>
<configuration>
    ...
    <appSettings>
        <add key "eventLoggingEnabled" value="true"/>
        ...
    </appSettings>
    ...
</configuration>

Events raised by the DCS runtime are recorded in the Windows Application event log with the source DCS Runtime.

Note

You can also record events in the Windows Application event log by configuring tracing and specifying the event log as the trace source. For more information, see Monitoring DCS Services.

See Also

Configuring Tracing in DCS Services and Client Applications