Parameterize writing to syslog