Hello All, I am starting to add support for logging number of entries for individual logs. This will work the same way as image hash currently works from an implementation perspective.
Format: |---------------------------------------------------------------------------------------------------------------------------------| | ---Log header --- | --- Img hash (optional) --- | --- Number of entries (optional) --- | --- Log body ---| |---------------------------------------------------------------------------------------------------------------------------------| - Flags field in the header is used to indicate whether the number of entries field is present or not - Log version will be incremented to 4 since the header changes - CLI command to query the number of entries since an index have been added as well - Important Note: Currently when people use it they will have to use LOG_VERSION 4 directly. Someone transitioning from 3 to 4 will lose version 3 logs. Backwards compatibility will be fixed later. - MCUmgr support to read the logs will be added shortly after the mynewt-core PR, there is a bug which I am trying to solve with the newtmgr tool. So, will add mcumgr firmware side support and tool support simultaneously. - Unit tests for the same will be added shortly after the mynewt-core PR. -- Regards, Vipul Rahane
