Mercurial > lada > lada-server
view src/main/java/de/intevation/lada/util/factory/LoggerFactory.java @ 435:2b58a86ca06f
Updated dependencies and LoggerFactory. Using log4j2 now.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 06 Feb 2015 13:35:12 +0100 |
parents | 397ce12d4222 |
children | 5011173fd340 |
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.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @ApplicationScoped public class LoggerFactory { @Produces Logger createLogger(InjectionPoint injectionPoint) { return LogManager.getLogger( injectionPoint.getMember().getDeclaringClass().getName()); } }