add syslog code snippet