I want to write the logs for users info, page navigation in drupal 7
User log in/out is always logged. Switch on the statistics core module for page view statistics. If you need more details google analytics is very handy (or Piwik if you don't trust google).