Set logger for cache if not explicitly set