Add optional logging to syslog