changeset 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 7d527bff842a
children 8157dd28aba7
files pom.xml src/main/java/de/intevation/lada/util/factory/LoggerFactory.java
diffstat 2 files changed, 27 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pom.xml	Fri Feb 06 12:24:23 2015 +0100
+++ b/pom.xml	Fri Feb 06 13:35:12 2015 +0100
@@ -46,11 +46,11 @@
             <artifactId>cdi-api</artifactId>
             <scope>provided</scope>
         </dependency>
-        <dependency>
+        <!-- dependency>
             <groupId>javax.ws.rs</groupId>
             <artifactId>jsr311-api</artifactId>
             <version>1.1.1</version>
-        </dependency>
+        </dependency-->
         <dependency>
             <groupId>org.jboss.spec.javax.ejb</groupId>
             <artifactId>jboss-ejb-api_3.2_spec</artifactId>
@@ -98,6 +98,28 @@
             <version>4.3</version>
         </dependency>
 
+        <!-- Logging -->
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>2.1</version>
+        </dependency>
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-core</artifactId>
+            <version>2.4.2</version>
+        </dependency>
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-databind</artifactId>
+            <version>2.4.2</version>
+        </dependency> 
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-annotations</artifactId>
+            <version>2.4.2</version>
+        </dependency>
+
         <!-- Arquillian/Testing -->
         <dependency>
         <groupId>junit</groupId>
--- a/src/main/java/de/intevation/lada/util/factory/LoggerFactory.java	Fri Feb 06 12:24:23 2015 +0100
+++ b/src/main/java/de/intevation/lada/util/factory/LoggerFactory.java	Fri Feb 06 13:35:12 2015 +0100
@@ -11,7 +11,8 @@
 import javax.enterprise.inject.Produces;
 import javax.enterprise.inject.spi.InjectionPoint;
 
-import org.apache.log4j.Logger;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
 
 
 @ApplicationScoped
@@ -19,7 +20,7 @@
 
     @Produces
     Logger createLogger(InjectionPoint injectionPoint) {
-        return Logger.getLogger(
+        return LogManager.getLogger(
             injectionPoint.getMember().getDeclaringClass().getName());
     }
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)