nabto_client_set_log_level()
DESCRIPTION
Set the SDK log level.
This needs to be set as early as possible to ensure modules are initialised with the correct log settings.
The default level is info.
Lower case string for the desired log level.
Allowed strings:
Each severity level includes all the less severe levels.
DECLARATION
NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_set_log_level(NabtoClient* context, const char* level)
PARAMETERS
context:
- [in] The NabtoClient context to set the log level on.
level:
- [in] The log level: error, warn, info, debug or trace
RETURNS
NABTO_CLIENT_EC_INVALID_ARGUMENT
: if invalid levelNABTO_CLIENT_EC_OK
: if successfully set