syslog code working