modify setup.sh,add a function to create automatically log filew