Can Leonardo write files back to my computer with it's serial interface?

In Windows you would be able to use Gobetwino to do the logging for you. In Linux I think you will need to write your own application which reads from the Arduino's serial port and logs the event in whichever way you prefer - for example, writing a log entry to a file. The application would be relatively simple to write if you can cope with development in the Linux environment.