> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# HCTraceSetEtwEnabled

> Turns Event Tracing for Windows (ETW) output of libHttpClient trace messages on or off.

Enables or disables Event Tracing for Windows (ETW) tracing on Windows PC and XBOX consoles.

## Syntax

```cpp theme={null}
void HCTraceSetEtwEnabled(  
         bool enabled  
)  
```

### Parameters

*enabled*   \_In\_\
Type: bool

`true` to write libHttpClient trace messages to ETW; `false` to stop.

### Return value

Type: void

## Remarks

The first enable call registers the libHttpClient TraceLogging provider `libHttpClient` (GUID `{2B6274B2-159F-4E6F-B800-0D17009E147A}`); subsequent enable calls reuse the registration. libHttpClient writes each trace message as a `libHttpClient_TraceMessage` event with a `Message` field. Messages are written only while tracing is initialized and ETW output is enabled, and only when the message level is at or below the trace area verbosity. For more information, see [HCSettingsSetTraceLevel](https://docs.xbox.com/reference/live/httpclient/trace/functions/hcsettingssettracelevel.md).

## Requirements

**Header:** trace.h

**Library:** libHttpClient.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[trace](https://docs.xbox.com/reference/live/httpclient/trace/trace_members.md)


## Related topics

- [trace (contents)](https://docs.xbox.com/reference/live/httpclient/trace/trace_members.md)
- [HCSettingsSetTraceLevel](https://docs.xbox.com/reference/live/httpclient/trace/functions/hcsettingssettracelevel.md)
- [Diagnostic tracing/logging in PlayFab Lobby and Matchmaking SDKs](https://docs.xbox.com/services/playfab/multiplayer/lobby/lobby-matchmaking-sdks/lobby-matchmaking-logging.md)
- [SetIsEnabled](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setisenabled.md)
- [Live services tools for XBOX and PlayFab](https://docs.xbox.com/tools/tools-services/index.md)
