Updated log function to return syslog first.
If /var/log/syslog is not available, /var/log/messages is returned. Failing that, and error code is returned to DSM.