Add a function to return the minloglevel as well since you'll maybe want that.