*/
package org.mxchange.jcoreeelogger.beans.local.logger;
+import java.text.MessageFormat;
import javax.enterprise.inject.Produces;
import javax.enterprise.inject.spi.InjectionPoint;
import org.apache.logging.log4j.LogManager;
/**
* A logger factory
- *
- * @author Roland Haeder
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
*/
public class LoggerFactory {
this.logger = LogManager.getLogger(this.getClass().getName());
}
+ /**
+ * Produces a logger instance
+ * <p>
+ * @param caller Injection point
+ * <p>
+ * @return Logger
+ */
@Produces
@Log
public Logger getLogger (final InjectionPoint caller) {
+ this.logger.trace(MessageFormat.format("caller={0} - CALLED!", caller));
return LogManager.getLogger(caller.getMember().getDeclaringClass().getName());
}
}