Move syslog function to libserv.