write a log to disk