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:
The log level: error, warn, info, debug or trace

RETURN VALUES

NABTO_CLIENT_EC_INVALID_ARGUMENT if invalid level, NABTO_CLIENT_EC_OK iff successfully set

EXAMPLES

None.