logging via memfault

Hello, 

I'm trying to log user data via memfault sdk. As I understand here I have to use 

MEMFAULT_LOG_SAVE to be able to send user logs to their dashboard. I tried that but it seems nothing is sent to the cloud. I could send traces and events but not user logs which for example printed via RTT or UART
I added something like 
CONFIG_MEMFAULT=y
CONFIG_MEMFAULT_COREDUMP_COLLECT_DATA_REGIONS=y
CONFIG_MEMFAULT_HEAP_STATS=y
CONFIG_MEMFAULT_LOGGING_ENABLE=y
CONFIG_MEMFAULT_LOGGING_RAM_SIZE=1000
CONFIG_BT_MDS=y
CONFIG_MEMFAULT_NCS_BT_METRICS=y
static int memfault_custom_init(const struct device *dev) {
    ARG_UNUSED(dev);
    int err = 0;
    memfault_log_boot(s_log_buf_storage, sizeof(s_log_buf_storage));
    return err;
}

SYS_INIT(memfault_custom_init, APPLICATION, CONFIG_APPLICATION_INIT_PRIORITY);
#define MEMFAULT_LOG_DEBUG(...) \
  MEMFAULT_LOG_SAVE(kMemfaultPlatformLogLevel_Debug, __VA_ARGS__)
#define MEMFAULT_LOG_INFO(...)  \
    MEMFAULT_LOG_SAVE(kMemfaultPlatformLogLevel_Info, __VA_ARGS__)
#define MEMFAULT_LOG_WARN(...)  \
    MEMFAULT_LOG_SAVE(kMemfaultPlatformLogLevel_Warning, __VA_ARGS__)
#define MEMFAULT_LOG_ERROR(...) \
    MEMFAULT_LOG_SAVE(kMemfaultPlatformLogLevel_Error, __VA_ARGS__)
but still no luck. 
Is there any suggestion for printing user logs even if no error occurs and displaying them in the memfault dashboard? 
and if that is not possible, is there any way to log user data via BLE same idea as UART or RTT? That is very useful for BLE applications where wire connection is difficult to use.
My regards,
platform: 
ncs: v2.3.0
soc: nrf5340
Parents Reply Children
Related