WriteLog

The WriteLog method is called by ADLX when a new ADLX log message is available.

Syntax

Copied!

ADLX_RESULT     WriteLog (const wchar_t* msg)

Parameters

  1. [out] msg const wchar_t* The new log message from the internal code execution of ADLX.

Return Value

The method must return ADLX_OK.

Remarks

Once the application enables the ADLX logs with EnableLog using APPLICATION for the ADLX_LOG_DESTINATION parameter, ADLX will call this method when a new log trace is generated.

The method should return quickly to not block the execution path in ADLX. If the method requires a long processing of the log trace, the application must copy the log message and process it asynchronously.

Requirements

Header

include “ISystem.h”

Minimum version

1.0

See Also

EnableLog