Add logging to cache