Function GenieLog_create

Function Documentation

Genie_Status_t GenieLog_create(const GenieLogConfig_Handle_t configHandle, const GenieLog_Callback_t callback, const GenieLog_Level_t logLevel, GenieLog_Handle_t *logHandle)

A function to create a handle to a logger object.

Parameters
  • configHandle[in] A handle to a config. This is a placeholder for future logger configurability. Currently, it must be NULL.

  • callback[in] Callback function which is called when new log messages are generated. Can be NULL which indicates that the default system logger will be used.

  • logLevel[in] Maximum level of messages which will be generated.

  • logHandle[out] A handle to the created logger handle.

Returns

Status code:

  • GENIE_STATUS_SUCCESS: API call was successful.

  • GENIE_STATUS_ERROR_INVALID_ARGUMENT: At least one argument is invalid.

  • GENIE_STATUS_ERROR_GENERAL: The log handle could not be created.