Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/org/dive4elements/artifactdatabase/rest/BaseOutResource.java @ 570:584591f8203c 3.2.x
Upgrade to Log4j 2
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 28 Feb 2022 17:41:14 +0100 |
parents | 415df0fc4fa1 |
children |
comparison
equal
deleted
inserted
replaced
569:2b40f4bf190d | 570:584591f8203c |
---|---|
14 import org.dive4elements.artifacts.ArtifactNamespaceContext; | 14 import org.dive4elements.artifacts.ArtifactNamespaceContext; |
15 import org.dive4elements.artifacts.CallMeta; | 15 import org.dive4elements.artifacts.CallMeta; |
16 | 16 |
17 import java.io.IOException; | 17 import java.io.IOException; |
18 | 18 |
19 import org.apache.log4j.Logger; | 19 import org.apache.logging.log4j.Logger; |
20 import org.apache.logging.log4j.LogManager; | |
20 | 21 |
21 import org.restlet.Request; | 22 import org.restlet.Request; |
22 import org.restlet.Response; | 23 import org.restlet.Response; |
23 | 24 |
24 import org.restlet.data.MediaType; | 25 import org.restlet.data.MediaType; |
41 */ | 42 */ |
42 public abstract class BaseOutResource | 43 public abstract class BaseOutResource |
43 extends BaseResource | 44 extends BaseResource |
44 { | 45 { |
45 /** The logger used in this class.*/ | 46 /** The logger used in this class.*/ |
46 private static Logger logger = Logger.getLogger(BaseOutResource.class); | 47 private static Logger logger = LogManager.getLogger(BaseOutResource.class); |
47 | 48 |
48 /** XPath to figure out the MIME type of the requested result.*/ | 49 /** XPath to figure out the MIME type of the requested result.*/ |
49 public static final String XPATH_MIME_TYPE = | 50 public static final String XPATH_MIME_TYPE = |
50 "/art:action/art:out/art:mime-type/@value"; | 51 "/art:action/art:out/art:mime-type/@value"; |
51 | 52 |