How to save log files?

Hi, The game I made requires you to shoot targets as you are walking down a street, however I want to know how to make something like a log file to see how many targets I hit. Any ideas how to do this design?

I do something similar in my game, I have a static class that listen to OnDamage and OnDeath events that are called each time an enemy is hit or killed (among other statistics that it gather) and add to the total score. I then save and store the statistics gathered during the last session in xml files.

:slight_smile: Works fine for me, but I wouldn’t be amazed if there are better ways to achieve this.