Fix log file create and append logs
Merge pull request #11 from rajthilakmca/master

Fix log file create and append logs