diff options
Diffstat (limited to 'src/java/org/apache/poi/sl/image/ImageHeaderEMF.java')
-rw-r--r-- | src/java/org/apache/poi/sl/image/ImageHeaderEMF.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/java/org/apache/poi/sl/image/ImageHeaderEMF.java b/src/java/org/apache/poi/sl/image/ImageHeaderEMF.java index 48bf45564b..6dd5faf440 100644 --- a/src/java/org/apache/poi/sl/image/ImageHeaderEMF.java +++ b/src/java/org/apache/poi/sl/image/ImageHeaderEMF.java @@ -20,15 +20,15 @@ package org.apache.poi.sl.image; import java.awt.Dimension; import java.awt.Rectangle; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; import org.apache.poi.util.Internal; import org.apache.poi.util.LittleEndian; import org.apache.poi.util.LocaleUtil; -import org.apache.poi.util.POILogFactory; -import org.apache.poi.util.POILogger; @Internal public class ImageHeaderEMF { - private static final POILogger LOG = POILogFactory.getLogger(ImageHeaderEMF.class); + private static final Logger LOG = LogManager.getLogger(ImageHeaderEMF.class); private static final String EMF_SIGNATURE = " EMF"; // 0x464D4520 (LE) @@ -40,7 +40,7 @@ public class ImageHeaderEMF { int offset = off; int type = (int)LittleEndian.getUInt(data, offset); offset += 4; if (type != 1) { - LOG.log(POILogger.WARN, "Invalid EMF picture - invalid type"); + LOG.atWarn().log("Invalid EMF picture - invalid type"); deviceBounds = new Rectangle(0,0,200,200); return; } @@ -55,7 +55,7 @@ public class ImageHeaderEMF { offset += 16; String signature = new String(data, offset, EMF_SIGNATURE.length(), LocaleUtil.CHARSET_1252); if (!EMF_SIGNATURE.equals(signature)) { - LOG.log(POILogger.WARN, "Invalid EMF picture - invalid signature"); + LOG.atWarn().log("Invalid EMF picture - invalid signature"); } } |