Updated main and log cpp files to successfully log to both stdout and to syslog.