Update main.c

syslog can work, but you have to create the file (syslog) first.