Currently I am working with a Spring Cache and the @Cacheable/@CacheEvict annotations.
@Cacheable
@CacheEvict
I would like to get some sort of a console log statement
I don't think it is a good idea to open trace log all the time, even it is only for cache log. The better way is, EHcache has this hit/miss metrics already, you can get it by JMX or spring boot actuator.
JMX
spring boot actuator
To use by JMX, you can refer this
To use Spring Boot Actuator, you can refer this.
Spring Boot Actuator