How to save data in a custom game mode of DotA2?

I built a custom game mode of DotA2. the custom game adjusts the difficulty after doing a calculation on some of the player features like "kills, deaths, ... etc" every five minutes. I need to record the features and my calculation on them each time, not the final state of the player. If you have any idea or suggestion to save the results on a file or any other idea to get the result from other players when they play this custom game, I'll appreciate you. Best regards