TraceLoggingCustomAttribute macro (traceloggingprovider.h)

TraceLogging wrapper macro that adds custom information about the event into the PDB.

Syntax

void TraceLoggingCustomAttribute(
  [in]  key,
  [in]  value
);

Parameters

[in] key

A string literal with the key for the custom attribute.

[in] value

A string literal with the value of the custom attribute.

Return value

None

Remarks

TraceLoggingCustomAttribute("key", "value") can be used as a parameter to an invocation of a TraceLoggingWrite macro. Most TraceLogging events do not need custom attributes and should not use TraceLoggingCustomAttribute.

Custom attributes are stored in the PDB. They are not available at runtime.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header traceloggingprovider.h

See also

TraceLoggingWrite

TraceLogging wrapper macros