allow user to specify the path of log file to upload #4148

fix #4148