Skip to main content
Sets the trace level for libHttpClient.

Syntax

Parameters

traceLevel   _In_
Type: HCTraceLevel
Trace level.

Return value

Type: HRESULT Returns S_OK. The function returns a failure code only if an unexpected internal exception occurs.

Remarks

HCSettingsSetTraceLevel sets the verbosity of the libHttpClient HTTPCLIENT and WEBSOCKET trace areas. The default verbosity of both areas is HCTraceLevel::Information. The function doesn’t change trace areas that other libraries define, such as XSAPI. The trace level controls which messages libHttpClient produces. To send the messages somewhere, call HCTraceSetTraceToDebugger, HCTraceSetClientCallback, or HCTraceSetEtwEnabled. Debugger output is off by default.

Requirements

Header: trace.h Library: libHttpClient.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

trace
HCSettingsGetTraceLevel
Last modified on October 30, 2026