Function QnnSystemLog_create

Function Documentation

Qnn_ErrorHandle_t QnnSystemLog_create(QnnLog_Callback_t callback, QnnLog_Level_t maxLogLevel, Qnn_LogHandle_t *logger)

Create a handle to a logger object.

Parameters
  • callback[in] Callback to handle system library generated logging messages. NULL indicates system library may direct log messages to the default log stream on the target platform when possible (e.g. to logcat in case of Android).

  • maxLogLevel[in] Maximum level of messages which the system library will generate.

  • logger[out] The created log handle.

Returns

Error code:

  • QNN_SUCCESS: if logging is successfully initialized.

  • QNN_COMMON_ERROR_NOT_SUPPORTED: logging is not supported.

  • QNN_LOG_ERROR_INVALID_ARGUMENT: if one or more arguments is invalid.

  • QNN_LOG_ERROR_MEM_ALLOC: for memory allocation errors.

  • QNN_LOG_ERROR_INITIALIZATION: log init failed.

Note

Use corresponding API through QnnSystemInterface_t.