Improve logging output and syslog support.