OpenLog questions and sample code

Where have you initialized the SD device? Nothing happens automatically just because the hardware is connected.