This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Timestamp added when using NRF_LOG_RAW_INFO

Hi,

documentation for NRF_LOG_RAW_INFO state that it is:

A macro for logging a formatted string without any prefix or timestamp.

But when I use next code snippet with logging via Segger RTTT, it adds timestamps:

NRF_LOG_INFO("Q: " NRF_LOG_FLOAT_MARKER " " NRF_LOG_FLOAT_MARKER " " NRF_LOG_FLOAT_MARKER " ",
    NRF_LOG_FLOAT(quaternion[QUAT_W]),
    NRF_LOG_FLOAT(quaternion[QUAT_X]),
    NRF_LOG_FLOAT(quaternion[QUAT_Y]));

NRF_LOG_RAW_INFO(NRF_LOG_FLOAT_MARKER "\r\n",
    NRF_LOG_FLOAT(quaternion[QUAT_Z]));

Resulting log:

0> [00050171]:INFO:Q: 0.44 0.00 0.44 [00050171]0.56

Is it a bug or am I doing something wrong?

I use SDK 12.0.0 with nRF52832 on custom board.

Related