view src/main/java/de/intevation/lada/util/factory/LoggerFactory.java @ 437:5011173fd340

Updated logging infrastructure. Using log4j 1.2.17 since log4j2 does not with arquillian.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 06 Feb 2015 15:58:28 +0100
parents 2b58a86ca06f
children
line wrap: on
line source
/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
 * Software engineering by Intevation GmbH
 *
 * This file is Free Software under the GNU GPL (v>=3)
 * and comes with ABSOLUTELY NO WARRANTY! Check out
 * the documentation coming with IMIS-Labordaten-Application for details.
 */
package de.intevation.lada.util.factory;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import javax.enterprise.inject.spi.InjectionPoint;

import org.apache.log4j.Logger;


@ApplicationScoped
public class LoggerFactory {

    @Produces
    Logger createLogger(InjectionPoint injectionPoint) {
        return Logger.getLogger(
            injectionPoint.getMember().getDeclaringClass().getName());
    }
}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)