All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dspace.iiif.logger.CanvasCacheLogger Maven / Gradle / Ivy

The newest version!
/**
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 * http://www.dspace.org/license/
 */
package org.dspace.iiif.logger;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.ehcache.event.CacheEvent;
import org.ehcache.event.CacheEventListener;

public class CanvasCacheLogger implements CacheEventListener {
    private static final Logger log = LogManager.getLogger(CacheLogger.class);

    @Override
    public void onEvent(CacheEvent cacheEvent) {
        log.info("Canvas Dimension Cache Event Type: {} | Key: {} ",
            cacheEvent.getType(), cacheEvent.getKey());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy