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);
}
}