Added log file code
Merge pull request #2 from ssairam93/master

7th Revision