To better help customers verify their cache configurations it would be useful to see the cache flush events confirmed in the log. Especially since the introduction of the site aware cache policy. I would like to be able to see the cache flush confirmed in the log at the debug level:
- Each flush command now has TRACE level logging for flush events including names of caches being flushed.
- Observation registration for cache flushing is now recorded at TRACE level. Can be seen during startup phase of the cache module.
- FlushAllListeningPolicy records flush events at TRACE level which includes the name of the cache being flushed.
- CachePolicyResult #toString() method updated to include the name of the cache being used. This can be observed by turning the cache filter to DEBUG.
Enable debug/trace in log4j2: