Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/org/dive4elements/artifactdatabase/DefaultArtifactSerializer.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 |
---|---|
20 import java.io.OutputStream; | 20 import java.io.OutputStream; |
21 | 21 |
22 import java.util.zip.GZIPInputStream; | 22 import java.util.zip.GZIPInputStream; |
23 import java.util.zip.GZIPOutputStream; | 23 import java.util.zip.GZIPOutputStream; |
24 | 24 |
25 import org.apache.log4j.Logger; | 25 import org.apache.logging.log4j.Logger; |
26 import org.apache.logging.log4j.LogManager; | |
26 | 27 |
27 /** | 28 /** |
28 * Default implementation of the ArtifactSerializer interface. | 29 * Default implementation of the ArtifactSerializer interface. |
29 * It uses serialized Java objects which are gzipped and | 30 * It uses serialized Java objects which are gzipped and |
30 * turned into bytes. | 31 * turned into bytes. |
33 */ | 34 */ |
34 public class DefaultArtifactSerializer | 35 public class DefaultArtifactSerializer |
35 implements ArtifactSerializer | 36 implements ArtifactSerializer |
36 { | 37 { |
37 private static Logger logger = | 38 private static Logger logger = |
38 Logger.getLogger(DefaultArtifactSerializer.class); | 39 LogManager.getLogger(DefaultArtifactSerializer.class); |
39 | 40 |
40 /** | 41 /** |
41 * Static instance to avoid repeated creation of Serializers. | 42 * Static instance to avoid repeated creation of Serializers. |
42 */ | 43 */ |
43 public static final ArtifactSerializer INSTANCE = | 44 public static final ArtifactSerializer INSTANCE = |