Using ETW in ASP.NET 4.5.1, how do I get the Debug channel to show up in Event Viewer?

StackOverflow https://stackoverflow.com/questions/21316961

  •  01-10-2022
  •  | 
  •  

문제

I am using the NuGet TraceEvent library. I am trying to write Level.Verbose events to the Debug channel; however, the Debug channel is not showing up in EventViewer.

I have tried modifying the manifest to change the default enabled="false" to "true" and then registered it with wevtutil.

 <channels>
  <channel chid="Admin" name="MyApp/Admin" value="16" type="Admin" enabled="true"/>
  <channel chid="Operational" name="MyApp/Operational" value="17" type="Operational" enabled="true"/>
  <channel chid="Debug" name="MyApp/Debug" value="19" type="Debug" enabled="false"/>
 </channels>

There doesn't appear to be anything in the Event Viewer where I can enable the Debug channel.

도움이 되었습니까?

해결책

Ran across an excerpt from .NET 4 for Enterprise Architects and Developers.

This MSDN blog post also has some nice procedures and screenshots.

The short answer is in the EventViewer MMC window, toggle the "View" -> "Show Analytic and Debug Logs" window.

Show Analytic and Debug Logs

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top