ArduinoLog A Library for Logging Data on the Arduino. It supports Logging to the Serial or to an SD card For Instructions how to use it, have a look at the examples