Make log_write a NOP when not intialised.