Last active
August 29, 2015 14:12
-
-
Save pedro-hos/dcdb0ea9dde7e1c14e23 to your computer and use it in GitHub Desktop.
LoggerProducer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.enterprise.inject.Produces; | |
import javax.enterprise.inject.spi.InjectionPoint; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
public class LoggerProducer { | |
@Produces | |
public Logger produceLogger(InjectionPoint injectionPoint) { | |
return LoggerFactory.getLogger(injectionPoint.getMember() | |
.getDeclaringClass().getName()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment