Why is there only one latest record in the log for multiple "publishes" in my code?p

Hi, Iā€™m recently learning px4 logger, when I use multiple publish why only the latest one data?

If you publish to quickly the logger might not be able to keep up. I would suggest to update all array entries at once first and the publish once.