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.

16 lines
503 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 implements CacheEventListener<Object, Object> {
  7. @Override
  8. public void onEvent(CacheEvent<? extends Object, ? extends Object> cacheEvent) {
  9. log.debug("custom Caching event {} key = {} old {} new {} ", cacheEvent.getType(), cacheEvent.getKey(),
  10. cacheEvent.getOldValue(), cacheEvent.getNewValue());
  11. }
  12. }