nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ nrf_cloud_log_enable()

void nrf_cloud_log_enable ( bool enable)

#include <include/net/nrf_cloud_log.h>

Enable or disable logging to the cloud.

When CONFIG_NRF_CLOUD_LOG_BACKEND=y, will enable or disable the log backend, without changing the log level. Disable the log backend to conserve power by eliminating unnecessary processing of log messages.

When CONFIG_NRF_CLOUD_LOG_DIRECT=y, the log enable state determines whether calls to nrf_cloud_log_send() or nrf_cloud_rest_log_send() will succeed. This will conserve power by not transmitting log messages when not needed.

Parameters
[in]enableSet true to send logs to the cloud, false to disable.