nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
nRF RPC logging

Logging over nRF RPC. More...

Data Structures

struct  nrf_rpc_crash_info
 nRF RPC crash info. More...
 

Typedefs

typedef void(* log_rpc_history_handler_t) (enum log_rpc_level level, const char *msg, size_t msg_len)
 Log history handler.
 
typedef void(* log_rpc_history_threshold_reached_handler_t) (void)
 Log history threshold reached handler.
 

Enumerations

enum  log_rpc_level {
  LOG_RPC_LEVEL_NONE = 0 , LOG_RPC_LEVEL_ERR , LOG_RPC_LEVEL_WRN , LOG_RPC_LEVEL_INF ,
  LOG_RPC_LEVEL_DBG
}
 nRF RPC logging level. More...
 

Functions

void log_rpc_set_stream_level (enum log_rpc_level level)
 Sets the log streaming verbosity level.
 
void log_rpc_set_history_level (enum log_rpc_level level)
 Sets the log history verbosity level.
 
uint8_t log_rpc_get_history_usage_threshold (void)
 Gets the current history usage threshold.
 
size_t log_rpc_get_history_usage_current (void)
 Gets the current history usage size in bytes.
 
size_t log_rpc_get_history_usage_max (void)
 Gets the maximum history size in bytes.
 
void log_rpc_set_history_usage_threshold (log_rpc_history_threshold_reached_handler_t handler, uint8_t threshold)
 Sets the current history usage threshold.
 
int log_rpc_fetch_history (log_rpc_history_handler_t handler)
 Fetches the log history.
 
void log_rpc_stop_fetch_history (bool pause)
 Stops the log history transfer.
 
int log_rpc_get_crash_dump (size_t offset, uint8_t *buffer, size_t buffer_length)
 Retrieves the crash dump saved on the remote device.
 
int log_rpc_invalidate_crash_dump (void)
 Invalidates the crash dump saved on the remote device.
 
int log_rpc_get_crash_info (struct nrf_rpc_crash_info *info)
 Get crash dump summary.
 
void log_rpc_echo (enum log_rpc_level level, const char *message)
 Generates a log message on the remote device.
 
void log_rpc_set_time (uint64_t now_us)
 Sets the current time used for log timestamping.
 

Detailed Description

Logging over nRF RPC.