Mercurial > dive4elements > http-client
comparison src/main/java/org/dive4elements/artifacts/httpclient/ConsoleClient.java @ 125:e602a29f1dcc 3.2.x
Upgrade to Log4j 2
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 28 Feb 2022 17:49:46 +0100 |
parents | 7261c948425c |
children |
comparison
equal
deleted
inserted
replaced
124:7261c948425c | 125:e602a29f1dcc |
---|---|
23 | 23 |
24 import org.w3c.dom.Document; | 24 import org.w3c.dom.Document; |
25 import org.w3c.dom.Node; | 25 import org.w3c.dom.Node; |
26 import org.w3c.dom.NodeList; | 26 import org.w3c.dom.NodeList; |
27 | 27 |
28 import org.apache.log4j.Logger; | 28 import org.apache.logging.log4j.Logger; |
29 import org.apache.logging.log4j.LogManager; | |
29 | 30 |
30 import org.dive4elements.artifacts.httpclient.http.HttpClient; | 31 import org.dive4elements.artifacts.httpclient.http.HttpClient; |
31 import org.dive4elements.artifacts.httpclient.http.HttpClientImpl; | 32 import org.dive4elements.artifacts.httpclient.http.HttpClientImpl; |
32 import org.dive4elements.artifacts.httpclient.http.response.DocumentResponseHandler; | 33 import org.dive4elements.artifacts.httpclient.http.response.DocumentResponseHandler; |
33 | 34 |
57 public static final String XPATH_DYNAMIC = "/art:result/art:ui/art:dynamic"; | 58 public static final String XPATH_DYNAMIC = "/art:result/art:ui/art:dynamic"; |
58 | 59 |
59 /** | 60 /** |
60 * The logger used in this class. | 61 * The logger used in this class. |
61 */ | 62 */ |
62 private static Logger logger = Logger.getLogger(ConsoleClient.class); | 63 private static Logger logger = LogManager.getLogger(ConsoleClient.class); |
63 | 64 |
64 | 65 |
65 public static final Configuration readConfiguration() { | 66 public static final Configuration readConfiguration() { |
66 File configDir = new File(CONFIG_PATH); | 67 File configDir = new File(CONFIG_PATH); |
67 File configFile = new File(configDir, CONFIG); | 68 File configFile = new File(configDir, CONFIG); |