Mercurial > lada > lada-server
view src/main/java/de/intevation/lada/util/factory/LoggerFactory.java @ 424:397ce12d4222
Added logger factory.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 04 Feb 2015 16:06:36 +0100 |
parents | |
children | 2b58a86ca06f |
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()); } }