IWiaLog::Log method

The IWiaLog interface is obsolete and is no longer supported. Use the Diagnostic Log Macros instead.The IWiaLog::Log method writes a diagnostic log message to Wiaservc.log.

Syntax

HRESULT Log(
  LONG lFlags,
  LONG lResID,
  LONG lDetail,
  BSTR bstrText
);

Parameters

lFlags

Specifies the type of diagnostic message. This parameter can be WIA_WARNING, WIA_TRACE or WIA_ERROR.

lResID

lDetail

Specifies the diagnostic detail level of the message. This parameter can be one of the following values.

Level Description
WIALOG_LEVEL1 Logs entry and exit points for all WIA methods and functions.
WIALOG_LEVEL2 Logs additional details for WIALOG_LEVEL1.
WIALOG_LEVEL3 Logs entry and exit points for all WIA methods and functions and additional vendor-supplied functions.
WIALOG_LEVEL4 Logs additional details for WIALOG_LEVEL3.
WIALOG_LEVELXXX User-defined log levels.

bstrText

Specifies the error text. The error text should be prefixed with the full name of the method or function and generate the message in the format of "class::method, error-text".

Return value

If the method succeeds, it returns S_OK. If the method fails, it returns a standard COM error code.

Requirements

   
Minimum supported client Obsolete and is no longer supported. Instead, use the Diagnostic Log Macros.
Target Platform Desktop
Header wia_lh.h