Emulates python's built-in syslog module