2

Windows event logs are different at below Vista (XP and below) and Vista and up, see here Windows Event Logs . On Vista and up, on the event viewer, we could see a column called Level. If we filter the event, it would show us all the possible levels:

Critical
Warning
Verbose
Error
Information

The value of Information has value 4 based on my testing. However if we look at the schema for Level, actually the range of its values are not restricted. So here are two of my questions:

  • how do I know what value each of above string would have? Is there a page at MSDN for this? I could not find it
  • Is there any restriction for the Level or not? Or is it up to the Event provider itself?
4

1 に答える 1

3

このリンクがお役に立てば幸いです。

上記のリンクからわかるように、カスタム レベルの値は 16 から 255 の範囲である必要があります。つまり、ウィンドウ レベルは 0 から 15 の範囲に配置されます。

于 2012-07-26T09:20:18.697 に答える