## LoggingChannel

Demonstrates writing events with LoggingChannel and LoggingActivity.

LoggingChannel can work in a Windows 8.1 compatibility mode or in a new Windows 10 enhanced mode. Each of the buttons below will run the same scenario using a different LoggingChannel mode. You can then compare the ETW output to see the differences in the two modes.

Before clicking each button, you should start an ETW session to capture the events from the scenario. Use a tool such as xperf to start a session capturing the correct provider GUID, then click the button to log events, then stop the session, and finally examine the ETL file (using xperf, tracerpt, or another ETL decoding tool). For example, you might do the following (replacing GUID with the correct GUID for each button):

xperf -start MySession -f MyFile.etl -on GUID
(click button)
xperf -stop MySession
tracerpt MyFile.etl

Use GUID: 4bd2826e-54a1-4ba9-bf63-92b73ea1ac4a

Use GUID: eff1e128-4903-5093-096a-bdc29b38456f