add log function
log to syslog