Fairly flexible logging using syslog API.