EnableLog

Enables logging in ADLX.

Syntax

Copied!

ADLX_RESULT     EnableLog (ADLX_LOG_DESTINATION  mode, ADLX_LOG_SEVERITY  severity, IADLXLog * pLogger, const wchar_t* fileName)

Parameters

  1. [in] mode ADLX_LOG_DESTINATION The log destination.

  2. [in] severity ADLX_LOG_SEVERITY The logging severity.

  3. [in] pLogger IADLXLog * The pointer to the log interface to receive log messages from ADLX.

  4. [in] fileName const wchar_t* The zero-terminated string that specifies the path of the log file.

Return Value

If EnableLog is successfully executed, ADLX_OK is returned.

If EnableLog is not successfully executed, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Remarks

By default, ADLX logging is disabled. Use EnableLog to configure log destination and severity.