nabto_device_set_log_level()

DESCRIPTION

Set log level of device.

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_set_log_level(NabtoDevice* device, const char* level)

PARAMETERS

device:
[in] The device instance to set level on
level:
[in] The log level to set, available levels are: error, warn, info, trace

RETURN VALUES

NABTO_DEVICE_EC_OK on success NABTO_DEVICE_EC_INVALID_ARGUMENT on invalid level string

EXAMPLES

None.