GPS Logger not writing to SD Card

What do the debug prints show?

Please remember to use code tags when posting code.

Maybe also a good idea to run the IDE's auto format tool on the code.