adding error handling incase the config logging option is not defined