TraceLoggingCustomAttribute macro (traceloggingprovider.h)

Wrapper macro for adding custom information about an event to the PDB.

Syntax

void TraceLoggingCustomAttribute(
   key,
   value
);

Parameters

key

The key for the custom attribute.

value

The value of the custom attribute.

Return value

None

Remarks

Both parameters must be string literals. This information will appear under the CustomAttributes array for the event. If no custom attributes are specified the array will not appear. Multiple custom attributes can be specified per event.

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

Requirements

   
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2012 R2
Target Platform Windows
Header traceloggingprovider.h