logging of user activities in log/activity.txt