Tested that some time ago and the game becomes very slow and get lag spikes, because of all the open and close file operations. But I can test it again and see it it was just a glitch or something. It can be done with a timer that only save it every few seconds, but then you lose the last second of log data if it crash.