Add log level setting
Merge pull request #31 from thomasf/master

Add log level setting