【问题标题】:Using ETW in ASP.NET 4.5.1, how do I get the Debug channel to show up in Event Viewer?在 ASP.NET 4.5.1 中使用 ETW,如何让调试通道显示在事件查看器中?
【发布时间】:2014-01-23 18:54:17
【问题描述】:

我正在使用NuGet TraceEvent library。我正在尝试将 Level.Verbose 事件写入调试通道;但是,调试通道未显示在 EventViewer 中。

我尝试修改清单以将默认启用=“false”更改为“true”,然后使用 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>

事件查看器中似乎没有任何东西可以启用调试通道。

【问题讨论】:

    标签: .net etw event-viewer


    【解决方案1】:

    看到.NET 4 for Enterprise Architects and Developers 的摘录。

    这篇 MSDN 博文也有一些不错的程序和截图。

    简短的回答是在 EventViewer MMC 窗口中,切换“查看”->“显示分析和调试日志”窗口。

    【讨论】:

      猜你喜欢
      • 2013-12-10
      • 1970-01-01
      • 2013-01-02
      • 2011-10-13
      • 1970-01-01
      • 1970-01-01
      • 2011-10-06
      • 1970-01-01
      • 2019-02-17
      相关资源
      最近更新 更多