log user behavior into file,and then analysis