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

Logging with timestamp on SDK 15.2

i have recently upgraded to SDK 15.2, and since doing so I am struggling to get timestamps working in the logger.

I am initialising the logger here:

And here is my microsecond timer. 

When I log (using NRF_LOG_INFO("comment")) no timestamp appears.  This code worked in SDK 14.2 .  Any ideas what I'm misssing?  Thank you.

Parents
  • Hi

    What example are you basing your project in? And how exactly did you upgrade the SDK? There might be some changes done to the logger in the sdk_config.h file if you just changed the SDK version of the example and added your custom code.

    Best regards,

    Simon

Reply
  • Hi

    What example are you basing your project in? And how exactly did you upgrade the SDK? There might be some changes done to the logger in the sdk_config.h file if you just changed the SDK version of the example and added your custom code.

    Best regards,

    Simon

Children
  • I didnt base on an example.  I just went through bit by bit fixing all teh issues I had.  My code is quite complex so it wasnt really appropriate to start from an example.

    Are you able to give me an example of how to setup the timer usage inside the logger?