<etwEnable> Element

Specifies whether to enable event tracing for Windows (ETW) for common language runtime events.

<configuration> Element
  <runtime> Element
    <etwEnable> Element
<etwEnable enabled="true|false"/>

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

enabled

Required attribute.

Specifies whether ETW should be enabled.

enabled Attribute

Value

Description

true

Enable ETW. This is the default for versions of Windows beginning with the Windows Vista and Windows Server 2008 operating systems.

false

Disable ETW. This is the default for earlier versions of Windows.

Child Elements

None.

Parent Elements

Element

Description

configuration

The root element in every configuration file used by the common language runtime and .NET Framework applications.

runtime

Contains information about assembly binding and garbage collection.

Beginning with Windows Vista, ETW is enabled by default. Use this element to disable ETW for an application. In earlier versions of Windows, use this element to enable ETW for an application.

NoteNote

ETW can be enabled or disabled globally on a server by using a registry setting. See Controlling .NET Framework Logging.

The following example shows how to enable ETW tracing for an application.

<configuration>
   <runtime>
      <etwEnable enabled="true" />
   </runtime>
</configuration>
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft