EFSDB is an Arduino library designed to standardize the basic operations on log files on ESP8266/ESP32 SoC.
Although by little effort, this library can be ported on other platforms.
I used it before with PIC32 and STM32 architecture.
In future I would like to upgrade this libray to use with I2C/SPI based EEPROM as data storage.
I am using this library in my IoT projects and it it working smoothly.
Check it out on GitHub https://github.com/umeshwalkar/EFSDB