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

nrfLogger: Reducing overhead in log files

We are currently trying to log our sensor data to a mobile phone through uart using nrfLogger app. We have nrf51 module and we are using SDK 12.

In nrfconnect, we select the APP logging, however for every data sample info log(I) also comes along when we save the file which increases the file size enormously.

For eg. for a 14MB file, the actual data content was only 2.5 MB.

I 13:51:04.610 Notification received from 6e400003-b5a3-f393-e0a9-e50e24dcca9e, value: (0x) 2B-30-30-30-39-32-2C-2D-30-30-30-32-34-2C-2D-30-30-30-31-37, "+00092,-00024,-00017" A 13:51:04.610 "+00092,-00024,-00017" received

In the above notification the only data content is :"+00092,-00024,-00017" however we receive it twice through two different logging levels.

How can we remove info log from the saved file so that we can effectively store a lot of data in a given file size?

Thanks.

Related