Cleanup logging

* Fix logging level selection
* Update formatting