Added ability to change syslog to async logging.