Changed the way to get log level from the runtime config.