nabto_device_set_log_callback()

DESCRIPTION

Set log callback if custom logging is desired.

The log callback can be removed by setting the callback and userdata to NULL.

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_set_log_callback(NabtoDevice* device, NabtoDeviceLogCallback cb, void* data)

PARAMETERS

device:
[in] The device instance to set callback for
cb:
[in] The function to be called on log event, or NULL to remove
data:
[in] Void pointer passed to the callback when invoked

RETURN VALUES

NABTO_DEVICE_EC_OK on success

EXAMPLES

None.