Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/ChartExportHelper.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 |
comparison
equal
deleted
inserted
replaced
9725:da398790fa32 | 9726:0a5239a1e46e |
---|---|
37 import au.com.bytecode.opencsv.CSVWriter; | 37 import au.com.bytecode.opencsv.CSVWriter; |
38 | 38 |
39 import org.apache.batik.svggen.SVGGraphics2D; | 39 import org.apache.batik.svggen.SVGGraphics2D; |
40 import org.apache.batik.svggen.SVGGraphics2DIOException; | 40 import org.apache.batik.svggen.SVGGraphics2DIOException; |
41 | 41 |
42 import org.apache.log4j.Logger; | 42 import org.apache.logging.log4j.Logger; |
43 import org.apache.logging.log4j.LogManager; | |
43 | 44 |
44 import org.jfree.chart.JFreeChart; | 45 import org.jfree.chart.JFreeChart; |
45 import org.jfree.chart.plot.XYPlot; | 46 import org.jfree.chart.plot.XYPlot; |
46 import org.jfree.data.xy.XYDataset; | 47 import org.jfree.data.xy.XYDataset; |
47 | 48 |
84 | 85 |
85 | 86 |
86 /** | 87 /** |
87 * Logger used for logging with log4j. | 88 * Logger used for logging with log4j. |
88 */ | 89 */ |
89 private static Logger log = Logger.getLogger(ChartExportHelper.class); | 90 private static Logger log = LogManager.getLogger(ChartExportHelper.class); |
90 | 91 |
91 | 92 |
92 /** | 93 /** |
93 * A method to export a <code>JFreeChart</code> as image to an | 94 * A method to export a <code>JFreeChart</code> as image to an |
94 * <code>OutputStream</code> with a given format, width and height. | 95 * <code>OutputStream</code> with a given format, width and height. |