Flash logger backend.
More...
Flash logger backend.
#define NRF_LOG_BACKEND_CRASHLOG_DEF |
( |
|
name | ) |
|
Value:
Macro for creating an instance of the crashlog logger backend.
#define NRF_LOG_BACKEND_FLASHLOG_DEF |
( |
|
name | ) |
|
Value:
Macro for creating an instance of the flashlog logger backend.
Function for initializing the flash logger backend.
Flash logger backend consists of two logical backends: flashlog and crashlog. Since both backends write to the same flash area, the initialization is common.
- Parameters
-
p_fs_api | fstorage API to be used. |
- Returns
- NRF_SUCCESS or error code returned by nrf_fstorage_init.
Function for getting a log entry stored in flash.
Log messages stored in flash can be read one by one starting from the oldest one.
- Parameters
-
[in,out] | p_token | Token reused between consecutive readings of log entries. Token must be set to 0 to read the first entry. |
[out] | pp_header | Pointer to the entry header. |
[out] | pp_data | Pointer to the data part of the entry (arguments or data in case of hexdump). |
- Return values
-
NRF_SUCCESS | Entry was successfully read. |
NRF_ERROR_NOT_SUPPORTED | fstorage API does not support direct reading. |
NRF_ERROR_NOT_FOUND | Entry not found. Last entry was already reached or area is empty. |