[Lada-commits] [PATCH 06 of 13] Updated dependencies and LoggerFactory. Using log4j2 now

Wald Commits scm-commit at wald.intevation.org
Fri Feb 6 17:57:40 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1423226112 -3600
# Node ID 2b58a86ca06fe11448e96b39a40a4f2b8a6a7630
# Parent  7d527bff842a0ed9fdab171ab997f2920c917346
Updated dependencies and LoggerFactory. Using log4j2 now.

diff -r 7d527bff842a -r 2b58a86ca06f pom.xml
--- 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>
diff -r 7d527bff842a -r 2b58a86ca06f src/main/java/de/intevation/lada/util/factory/LoggerFactory.java
--- 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());
     }
 }


More information about the Lada-commits mailing list