check if logger set, before throwing alert