uses _checkLevel function when configuring logging. Fixes #89