The WriteLog method is called by ADLX when a new ADLX log message is available.
ADLX_RESULT WriteLog (const wchar_t* msg)
[out]msg const wchar_t* The new log message from the internal code execution of ADLX.
The method must return ADLX_OK.
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.