To format the file system, access
http://[IP of your controller]:8008/exeformat-spiffs
although it's LittleFS instead of SPIFFS.
If "write on buffer full" is enabled, the log is stored in buffer, which is in RAM, and written to FLASH only when the buffer is full. It usually takes a few hours...