write logs to latest.log