Fix log error and add log level to get_logger (#842)
* Fix log error and add log level
* Example in docs
* Docstring fix
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Fixes
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>