DbgLog
Microsoft DirectShow 9.0 |
DbgLog
The DbgLog macro sends a string to the debug output location, if logging is enabled for the specified type and level. This macro is 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.
The macro automatically adds a newline character to the output string.
Example
DbgLog((LOG_TRACE, 3, TEXT("Connected input pin %d"), nPinNumber));
Note the additional set of parentheses that must enclose the macro parameters.
Requirements
** Header:** Declared in Wxdebug.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also