Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/services/AbstractChartService.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 | c16d04f2c5bc |
children |
comparison
equal
deleted
inserted
replaced
9725:da398790fa32 | 9726:0a5239a1e46e |
---|---|
14 import java.io.ByteArrayOutputStream; | 14 import java.io.ByteArrayOutputStream; |
15 import java.io.IOException; | 15 import java.io.IOException; |
16 | 16 |
17 import javax.imageio.ImageIO; | 17 import javax.imageio.ImageIO; |
18 | 18 |
19 import org.apache.log4j.Logger; | 19 import org.apache.logging.log4j.Logger; |
20 import org.apache.logging.log4j.LogManager; | |
20 import org.jfree.chart.JFreeChart; | 21 import org.jfree.chart.JFreeChart; |
21 import org.w3c.dom.Document; | 22 import org.w3c.dom.Document; |
22 import org.w3c.dom.Element; | 23 import org.w3c.dom.Element; |
23 import org.w3c.dom.NodeList; | 24 import org.w3c.dom.NodeList; |
24 | 25 |
33 public static final int DEFAULT_WIDTH = 240; | 34 public static final int DEFAULT_WIDTH = 240; |
34 public static final int DEFAULT_HEIGHT = 180; | 35 public static final int DEFAULT_HEIGHT = 180; |
35 | 36 |
36 public static final String DEFAULT_FORMAT = "png"; | 37 public static final String DEFAULT_FORMAT = "png"; |
37 | 38 |
38 private static final Logger log = Logger | 39 private static final Logger log = LogManager |
39 .getLogger(AbstractChartService.class); | 40 .getLogger(AbstractChartService.class); |
40 | 41 |
41 // TODO: Load fancy image from resources. | 42 // TODO: Load fancy image from resources. |
42 public static final byte[] EMPTY = { (byte) 0x89, (byte) 0x50, (byte) 0x4e, | 43 public static final byte[] EMPTY = { (byte) 0x89, (byte) 0x50, (byte) 0x4e, |
43 (byte) 0x47, (byte) 0x0d, (byte) 0x0a, (byte) 0x1a, (byte) 0x0a, | 44 (byte) 0x47, (byte) 0x0d, (byte) 0x0a, (byte) 0x1a, (byte) 0x0a, |