Added config option for debug logging. Logging disabled by default
Merge pull request #1 from Torins/master

Added config option for debug logging. Logging disabled by default