Adding a bit more control over logging level.