write logs to tmp/log