Using logman to collect data

2019-06-14 03:34发布

I try to use logman instead of DDK tracelog for colecting *.etl data produced by my application that uses WPP but was not able to see any data (in *.etl) after reading the etl file and decoding *.fmt information by using traceview.

What am I doing wrong? I generate *etl like this

logman start "Session" -o "Trace.etl" -p "{28EE579B-CF67-43b6-9D19-8930E7AAA131}" -ets logman stop "Session" -ets

When opening with traceview the generated Trace.etl it shows not errors only that there is no collected data there.

EDIT: I specify that I registered my generated *.mof file using mofcompiler on the system and that by using traceview directly I can see data.

2条回答
劳资没心,怎么记你
2楼-- · 2019-06-14 04:21

The problem was the fact that I didn't specify any flags and because of that (WPP messages being with flags set I was not seeing any data:

logman start "Session" -o "Trace.etl" -p "{28EE579B-CF67-43b6-9D19-8930E7AAA131}" 0xFFFF -ets logman stop "Session" -ets

查看更多
男人必须洒脱
3楼-- · 2019-06-14 04:25

I was searching for the same issue and found this useful documentation on MSDN:

CLR ETW Keywords and Levels

The levels have the following meanings:

  • 0x5 - Verbose
  • 0x4 - Informational
  • 0x3 - Warning
  • 0x2 - Error
  • 0x1 - Critical
  • 0x0 - LogAlways
查看更多
登录 后发表回答