Log2ram to save SD

Came across this and thought it might be useful for minimising SD corruption