A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
513 B

  1. package org.ros.chatto.config;
  2. import org.ehcache.event.CacheEvent;
  3. import org.ehcache.event.CacheEventListener;
  4. import lombok.extern.slf4j.Slf4j;
  5. @Slf4j
  6. public class CustomCacheEventLogger
  7. implements CacheEventListener<Object, Object> {
  8. @Override
  9. public void onEvent(
  10. CacheEvent<? extends Object, ? extends Object> cacheEvent) {
  11. log.debug("custom Caching event {} key = {} old {} new {} ",
  12. cacheEvent.getType(), cacheEvent.getKey(),
  13. cacheEvent.getOldValue(), cacheEvent.getNewValue());
  14. }
  15. }