Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
279 lines (268 sloc) 13.4 KB
<Type Name="EventLevel" FullName="System.Diagnostics.Tracing.EventLevel">
<TypeSignature Language="C#" Value="public enum EventLevel" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed EventLevel extends System.Enum" />
<TypeSignature Language="DocId" Value="T:System.Diagnostics.Tracing.EventLevel" />
<TypeSignature Language="VB.NET" Value="Public Enum EventLevel" />
<TypeSignature Language="C++ CLI" Value="public enum class EventLevel" />
<TypeSignature Language="F#" Value="type EventLevel = " />
<AssemblyInfo>
<AssemblyName>System.Diagnostics.Tracing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.0.20.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.2.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Docs>
<summary>Identifies the level of an event.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The level signifies the severity of an event. Lower severity levels encompass higher severity levels. For example, `Warning` includes the `Error` and `Critical` levels, which are higher in severity.
## Examples
The following example shows how to use the `Error` enumeration member to identify an error message. This example is part of a larger example provided for the <xref:System.Diagnostics.Tracing.EventSource> class.
[!code-csharp[ETWTrace#5](~/samples/snippets/csharp/VS_Snippets_CLR/etwtrace/cs/program.cs#5)]
[!code-vb[ETWTrace#5](~/samples/snippets/visualbasic/VS_Snippets_CLR/etwtrace/vb/program.vb#5)]
The following example shows how to use the `Informational` enumeration member to identify an informational message. This example is part of a larger example provided for the <xref:System.Diagnostics.Tracing.EventSource> class.
[!code-csharp[ETWTrace#6](~/samples/snippets/csharp/VS_Snippets_CLR/etwtrace/cs/program.cs#6)]
[!code-vb[ETWTrace#6](~/samples/snippets/visualbasic/VS_Snippets_CLR/etwtrace/vb/program.vb#6)]
The following example shows how to use the `Verbose` enumeration member to identify a verbose message. This example is part of a larger example provided for the <xref:System.Diagnostics.Tracing.EventSource> class.
[!code-csharp[ETWTrace#11](~/samples/snippets/csharp/VS_Snippets_CLR/etwtrace/cs/program.cs#11)]
[!code-vb[ETWTrace#11](~/samples/snippets/visualbasic/VS_Snippets_CLR/etwtrace/vb/program.vb#11)]
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="Critical">
<MemberSignature Language="C#" Value="Critical" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Diagnostics.Tracing.EventLevel Critical = int32(1)" />
<MemberSignature Language="DocId" Value="F:System.Diagnostics.Tracing.EventLevel.Critical" />
<MemberSignature Language="VB.NET" Value="Critical" />
<MemberSignature Language="C++ CLI" Value="Critical" />
<MemberSignature Language="F#" Value="Critical = 1" Usage="System.Diagnostics.Tracing.EventLevel.Critical" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Diagnostics.Tracing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.0.20.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.2.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Diagnostics.Tracing.EventLevel</ReturnType>
</ReturnValue>
<MemberValue>1</MemberValue>
<Docs>
<summary>This level corresponds to a critical error, which is a serious error that has caused a major failure.</summary>
</Docs>
</Member>
<Member MemberName="Error">
<MemberSignature Language="C#" Value="Error" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Diagnostics.Tracing.EventLevel Error = int32(2)" />
<MemberSignature Language="DocId" Value="F:System.Diagnostics.Tracing.EventLevel.Error" />
<MemberSignature Language="VB.NET" Value="Error" />
<MemberSignature Language="C++ CLI" Value="Error" />
<MemberSignature Language="F#" Value="Error = 2" Usage="System.Diagnostics.Tracing.EventLevel.Error" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Diagnostics.Tracing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.0.20.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.2.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Diagnostics.Tracing.EventLevel</ReturnType>
</ReturnValue>
<MemberValue>2</MemberValue>
<Docs>
<summary>This level adds standard errors that signify a problem.</summary>
</Docs>
</Member>
<Member MemberName="Informational">
<MemberSignature Language="C#" Value="Informational" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Diagnostics.Tracing.EventLevel Informational = int32(4)" />
<MemberSignature Language="DocId" Value="F:System.Diagnostics.Tracing.EventLevel.Informational" />
<MemberSignature Language="VB.NET" Value="Informational" />
<MemberSignature Language="C++ CLI" Value="Informational" />
<MemberSignature Language="F#" Value="Informational = 4" Usage="System.Diagnostics.Tracing.EventLevel.Informational" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Diagnostics.Tracing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.0.20.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.2.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Diagnostics.Tracing.EventLevel</ReturnType>
</ReturnValue>
<MemberValue>4</MemberValue>
<Docs>
<summary>This level adds informational events or messages that are not errors. These events can help trace the progress or state of an application.</summary>
</Docs>
</Member>
<Member MemberName="LogAlways">
<MemberSignature Language="C#" Value="LogAlways" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Diagnostics.Tracing.EventLevel LogAlways = int32(0)" />
<MemberSignature Language="DocId" Value="F:System.Diagnostics.Tracing.EventLevel.LogAlways" />
<MemberSignature Language="VB.NET" Value="LogAlways" />
<MemberSignature Language="C++ CLI" Value="LogAlways" />
<MemberSignature Language="F#" Value="LogAlways = 0" Usage="System.Diagnostics.Tracing.EventLevel.LogAlways" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Diagnostics.Tracing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.0.20.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.2.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Diagnostics.Tracing.EventLevel</ReturnType>
</ReturnValue>
<MemberValue>0</MemberValue>
<Docs>
<summary>No level filtering is done on the event.</summary>
</Docs>
</Member>
<Member MemberName="Verbose">
<MemberSignature Language="C#" Value="Verbose" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Diagnostics.Tracing.EventLevel Verbose = int32(5)" />
<MemberSignature Language="DocId" Value="F:System.Diagnostics.Tracing.EventLevel.Verbose" />
<MemberSignature Language="VB.NET" Value="Verbose" />
<MemberSignature Language="C++ CLI" Value="Verbose" />
<MemberSignature Language="F#" Value="Verbose = 5" Usage="System.Diagnostics.Tracing.EventLevel.Verbose" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Diagnostics.Tracing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.0.20.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.2.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Diagnostics.Tracing.EventLevel</ReturnType>
</ReturnValue>
<MemberValue>5</MemberValue>
<Docs>
<summary>This level adds lengthy events or messages. It causes all events to be logged.</summary>
</Docs>
</Member>
<Member MemberName="Warning">
<MemberSignature Language="C#" Value="Warning" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Diagnostics.Tracing.EventLevel Warning = int32(3)" />
<MemberSignature Language="DocId" Value="F:System.Diagnostics.Tracing.EventLevel.Warning" />
<MemberSignature Language="VB.NET" Value="Warning" />
<MemberSignature Language="C++ CLI" Value="Warning" />
<MemberSignature Language="F#" Value="Warning = 3" Usage="System.Diagnostics.Tracing.EventLevel.Warning" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Diagnostics.Tracing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.0.20.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.2.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Diagnostics.Tracing.EventLevel</ReturnType>
</ReturnValue>
<MemberValue>3</MemberValue>
<Docs>
<summary>This level adds warning events (for example, events that are published because a disk is nearing full capacity).</summary>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.