nabto_device_set_log_level()
DESCRIPTION
Set log level of device. The log level is stored globally, and so, the device reference is unused. This also means if multiple Nabto Device instances is running in the same process, this function configures the level for all instances.
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
RETURNS
NABTO_DEVICE_EC_OK
: on successNABTO_DEVICE_EC_INVALID_ARGUMENT
: on invalid level string