Update config handling for logging level, and add test

Set the default to CRITICAL only, to simplify code. Add check for the
specified logging level, and  a unit test for that.

Change-Id: I3ffa467f001dfdfb840f312bf0df8265aac58299
4 files changed