set loglevel with env_var and config file