Hi,
I'm using the flashlog on my nRF52840 to log events. I have an external RTC which I read when logging each event in order to timestamp the event. My RTC code writes to a static char array, and I use NRF_LOG_PUSH to save the value when I log the event. Doing a "flashlog read" after logging several events works as expected - I get my timestamped event logs. However, if I cycle power to the device and again read the flashlog, I see the events that were previously there, but the timestamp is missing.
Here's the sdk_config.h values of interest -
static char *p_dt; p_dt = logging_datetime_get(); NRF_LOG_WARNING("%s Entering state idle2.", NRF_LOG_PUSH(p_dt));