WebUI for Windows IoT (as seen on Raspberry PI) features the following Event Tracing screen:
How do I write into an event log from a uwp program and then la
EventRegister.exe -UsersGuide. Read and understand usage.eventRegister.exe -DumpRegDlls yourProject.winmd. This will generate yourProject.MyEwtProvider.etwManifest.dll and yourProject.MyEwtProvider.etwManifest.man files.C:\Events or use an existing one.yourProject.MyEwtProvider.etwManifest.man in an editor and edit resourceFileName and messageFileName paths so that the parent folder is C:\EventsyourProject.MyEwtProvider.etwManifest.dll and yourProject.MyEwtProvider.etwManifest.man over to your Windows IoT to the C:\Events folder. Note: the simplest way to do this is to open windows share as \\yourdevice\c$ in Windows Explorercd C:\Eventswevtutil.exe im .\yourProject.MyEwtProvider.etwManifest.man. This should not produce any warnings or errors. Please refer to this page for the details on wevtutil.exe syntax.Now if you navigate to your ETW WebUI page as in your question "MyEwtProvider" will appear in the drop down. You log events in your program by calling one of the UwpEventSource.Log.Info/Warn/Debug/Critical/Error("Hello from my porgram");
If you do not want to collect the events when you are not working with the WebUI you are done. If you want to be able to persist these and analyse them later, run the following command in your powershell session:
echo y | wevtutil.exe sl MyEwtProvider/Debug /e:true
See what it does here. Now you will be able to retrieve historical data (once you've accumulated them) by running:
wevtutil.exe qe MyEwtProvider/Debug