EnableLog
Enables logging in ADLX.
Syntax
ADLX_RESULT EnableLog (ADLX_LOG_DESTINATION mode, ADLX_LOG_SEVERITY severity, IADLXLog * pLogger, const wchar_t* fileName)
Parameters
-
[in]
mode ADLX_LOG_DESTINATION The log destination. -
[in]
severity ADLX_LOG_SEVERITY The logging severity. -
[in]
pLogger IADLXLog * The pointer to the log interface to receive log messages from ADLX. -
[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.