support defining logging in one place