Package eu.getmangos.cdi
Class LoggerProducer
java.lang.Object
eu.getmangos.cdi.LoggerProducer
- All Implemented Interfaces:
Serializable
@ApplicationScoped public class LoggerProducer extends Object implements Serializable
- Author:
- Warkdev
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description LoggerProducer() -
Method Summary
Modifier and Type Method Description org.slf4j.LoggergetLogger(javax.enterprise.inject.spi.InjectionPoint ip)Allows to inject the SL4J logger from CDI
-
Constructor Details
-
LoggerProducer
public LoggerProducer()
-
-
Method Details
-
getLogger
@Produces public org.slf4j.Logger getLogger(javax.enterprise.inject.spi.InjectionPoint ip)Allows to inject the SL4J logger from CDI- Parameters:
ip- The injection point- Returns:
- An instance of the SLF4J Logger.
-