Mercurial > dive4elements > river
comparison etl/src/main/java/org/dive4elements/river/etl/utils/XML.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 | 6f80d5f375fd |
children |
comparison
equal
deleted
inserted
replaced
9725:da398790fa32 | 9726:0a5239a1e46e |
---|---|
40 import javax.xml.xpath.XPath; | 40 import javax.xml.xpath.XPath; |
41 import javax.xml.xpath.XPathExpressionException; | 41 import javax.xml.xpath.XPathExpressionException; |
42 import javax.xml.xpath.XPathFactory; | 42 import javax.xml.xpath.XPathFactory; |
43 import javax.xml.xpath.XPathVariableResolver; | 43 import javax.xml.xpath.XPathVariableResolver; |
44 | 44 |
45 import org.apache.log4j.Logger; | 45 import org.apache.logging.log4j.Logger; |
46 import org.apache.logging.log4j.LogManager; | |
46 | 47 |
47 import org.w3c.dom.Document; | 48 import org.w3c.dom.Document; |
48 | 49 |
49 import org.xml.sax.SAXException; | 50 import org.xml.sax.SAXException; |
50 | 51 |
51 public final class XML | 52 public final class XML |
52 { | 53 { |
53 /** Logger for this class. */ | 54 /** Logger for this class. */ |
54 private static Logger log = Logger.getLogger(XML.class); | 55 private static Logger log = LogManager.getLogger(XML.class); |
55 | 56 |
56 public static class MapXPathVariableResolver | 57 public static class MapXPathVariableResolver |
57 implements XPathVariableResolver | 58 implements XPathVariableResolver |
58 { | 59 { |
59 protected Map<String, String> variables; | 60 protected Map<String, String> variables; |