Provide method for setting the level of error reporting
Merge pull request #4 from l-x/master

Provide method for setting the level of error reporting