Add configurable loglevel