Logging fixes, also trying to get it to work with macs Console (syslog)