EventLevel Enumeration
.NET Framework 4.5
Identifies the level of an event.
Namespace: System.Diagnostics.Tracing
Assembly: mscorlib (in mscorlib.dll)
| Member name | Description | |
|---|---|---|
![]() | LogAlways | No level filtering is done on the event. |
![]() | Critical | This level corresponds to a critical error, which is a serious error that has caused a major failure. |
![]() | Error | This level adds standard errors that signify a problem. |
![]() | Warning | This level adds warning events (for example, events that are published because a disk is nearing full capacity). |
![]() | Informational | This level adds informational events or messages that are not errors. These events can help trace the progress or state of an application. |
![]() | Verbose | This level adds lengthy events or messages. It causes all events to be logged. |
The following example shows how to use the EventLevel class to specify event levels. This code example is part of a larger example provided for the EventSource class.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
