Spring cache logging on @Cacheable hit
问题 Currently I am working with a Spring Cache and the @Cacheable / @CacheEvict annotations. I would like to get some sort of a console log statement like "INFO: i got those values from the cache, NOT from the host. awesome" Is there a clean and easy way to do this? We are using slf4j apparently btw, if that is of any interest. 回答1: Spring itself logs some of its Caching Abstractions behaviors under the org.springframework.cache logger in trace level. So, if you append logs under the org