changes sys.out to log in scxml