Adds logging to cache