logGtp is working to log to log.txt