write log to syslog