Add log function to spit messages to the console and syslog