windfly2006
windfly2006

Reputation: 1705

How to map Windows Event Log Event level to a string

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:

Upvotes: 2

Views: 6042

Answers (1)

westwood
westwood

Reputation: 1774

I hope this link will help you.

As you can see from link above, custom levels values must be in range from 16 to 255, that's mean, that windows levels are placed in range from 0 to 15.

Upvotes: 3

Related Questions