Microsoft DirectX 8.1 (C++)

DbgLog

Sends a string to the debug output location, if logging is enabled for the specified type and level. Ignored in retail builds.

Syntax

void DbgLog((
    DWORD Types,
    DWORD Level,
    const TCHAR *pFormat,
    ...
));

Parameters

Types

Bitwise combination of one or more message types.

Level

Logging level for this message.

pFormat

A printf-style format string.

...

Additional arguments for the format string.

Remarks

If debug logging for any of the message types is set to the specified level or higher, this macro sends the formatted string to the debug output location.

Example

DbgLog((LOG_TRACE, 3, TEXT("Connected input pin %d"), nPinNumber));

Note the additional set of parentheses that must enclose the macro parameters.

See Also