I want to log the user actions like bookmarking and timespent and the url to a file. Can any one suggest me the possible reading material for this. If possible any code that could help me do this.