context-manager/src/main/java/org/gcube/vremanagement/contextmanager/LogFactory.java

16 lines
379 B
Java
Raw Normal View History

2020-12-14 20:32:46 +01:00
package org.gcube.vremanagement.contextmanager;
import javax.enterprise.inject.Produces;
import javax.enterprise.inject.spi.InjectionPoint;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
class LogFactory {
@Produces public Logger createLogger(InjectionPoint injectionPoint) {
return LoggerFactory.getLogger(injectionPoint.getMember().getDeclaringClass());
}
}