I would like to log some data of my application activity so as to read it latter on in the system. The data includes strings, floats etc collected when a button is pressed. What is the best way to do this?