write logs to /var/log