All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.panchitoboy.common.logging.LoggerProducer Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
package com.github.panchitoboy.common.logging;

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 expose(InjectionPoint ip) {
        String loggerName = ip.getMember().getDeclaringClass().getName();
        return LoggerFactory.getLogger(loggerName);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy