Disabled creation of Logfile if debugToFile is false

Added condition to check if debugToFile is true before creating Logfile.
Merge pull request #14 from mricharz/patch-1

Disabled creation of Logfile if debugToFile is false