diff artifacts/src/main/java/org/dive4elements/river/artifacts/context/RiverContextFactory.java @ 9726:0a5239a1e46e 3.2.x

Upgrade to Log4j 2
author Tom Gottfried <tom@intevation.de>
date Wed, 02 Mar 2022 10:26:50 +0100
parents 5e38e2924c07
children 7227621f8496
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/context/RiverContextFactory.java	Fri Feb 25 17:17:56 2022 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/context/RiverContextFactory.java	Wed Mar 02 10:26:50 2022 +0100
@@ -17,7 +17,8 @@
 
 import javax.xml.xpath.XPathConstants;
 
-import org.apache.log4j.Logger;
+import org.apache.logging.log4j.Logger;
+import org.apache.logging.log4j.LogManager;
 
 import org.dive4elements.artifactdatabase.state.State;
 import org.dive4elements.artifactdatabase.state.StateEngine;
@@ -65,7 +66,7 @@
 public class RiverContextFactory implements ArtifactContextFactory {
 
     /** The log that is used in this class. */
-    private static Logger log = Logger.getLogger(RiverContextFactory.class);
+    private static Logger log = LogManager.getLogger(RiverContextFactory.class);
 
     /** The XPath to the artifacts configured in the configuration. */
     public static final String XPATH_ARTIFACTS =

http://dive4elements.wald.intevation.org