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

com.scarabsoft.endeavour.logging.EndeavourLoggerFactoryImpl Maven / Gradle / Ivy

The newest version!
package com.scarabsoft.endeavour.logging;

import java.util.HashMap;
import java.util.Map;

public final class EndeavourLoggerFactoryImpl implements EndeavourLoggerFactory {

    private final Map, EndeavourLogger> loggerMap = new HashMap<>();

    @Override
    public EndeavourLogger get(Class clazz) {
        loggerMap.computeIfAbsent(clazz, DefaultEndeavourLogger::new);
        return loggerMap.get(clazz);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy