slf4j has no setLevel or getLevel so we need to drill down to the underlying logger implementation. This is what would need to happen in a couple of the commented-out sections too. There may be other solutions.