refactored syslog