How do I program 9-DOF sensor write data to a log file? (Adafruit ICM20948 running on Adafruit Feather M4 Express)

I have a Feather M4 Express and a ICM20948 9-DOF Sensor