diff options
Diffstat (limited to 'poi-examples')
4 files changed, 8 insertions, 8 deletions
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/InCellLists.java b/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/InCellLists.java index 28c03a9bc4..d995b95d67 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/InCellLists.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/InCellLists.java @@ -23,7 +23,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFCellStyle; @@ -32,6 +31,7 @@ import org.apache.poi.hssf.usermodel.HSSFRichTextString; import org.apache.poi.hssf.usermodel.HSSFRow; import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.hssf.usermodel.HSSFWorkbook; +import org.apache.poi.logging.PoiLogManager; /** * This class contains code that demonstrates how to insert plain, numbered @@ -50,7 +50,7 @@ import org.apache.poi.hssf.usermodel.HSSFWorkbook; */ @SuppressWarnings({"java:S106","java:S4823"}) public class InCellLists { - private static final Logger LOG = LogManager.getLogger(InCellLists.class); + private static final Logger LOG = PoiLogManager.getLogger(InCellLists.class); // This character looks like a solid, black, loser case letter 'o' diff --git a/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/Outlines.java b/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/Outlines.java index 42f1b16fc3..3a90f49cea 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/Outlines.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/Outlines.java @@ -22,12 +22,12 @@ import java.io.FileOutputStream; import java.io.IOException; import java.lang.reflect.InvocationTargetException; -import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFRow; import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.hssf.usermodel.HSSFWorkbook; +import org.apache.poi.logging.PoiLogManager; /** * Creates outlines. @@ -35,7 +35,7 @@ import org.apache.poi.hssf.usermodel.HSSFWorkbook; public class Outlines implements Closeable { public static void main(String[] args) throws IOException, IllegalAccessException, InvocationTargetException, NoSuchMethodException { - Logger LOGGER = LogManager.getLogger(Outlines.class); + Logger LOGGER = PoiLogManager.getLogger(Outlines.class); for (int i=1; i<=13; i++) { try (Outlines o = new Outlines()) { String log = (String) Outlines.class.getDeclaredMethod("test" + i).invoke(o); diff --git a/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java b/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java index 8c1058341d..87543c7351 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java @@ -28,8 +28,8 @@ import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.util.ArrayList; -import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import org.apache.poi.logging.PoiLogManager; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.CellType; import org.apache.poi.ss.usermodel.DataFormatter; @@ -134,7 +134,7 @@ import org.apache.poi.ss.usermodel.WorkbookFactory; */ @SuppressWarnings({"java:S106","java:S4823","java:S1192"}) public class ToCSV { - private static final Logger LOG = LogManager.getLogger(ToCSV.class); + private static final Logger LOG = PoiLogManager.getLogger(ToCSV.class); private Workbook workbook; private ArrayList<ArrayList<String>> csvData; diff --git a/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/BigGridDemo.java b/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/BigGridDemo.java index f0562be0b8..022d50044d 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/BigGridDemo.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/BigGridDemo.java @@ -35,8 +35,8 @@ import java.util.Random; import org.apache.commons.compress.archivers.zip.ZipArchiveEntry; import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream; import org.apache.commons.compress.archivers.zip.ZipFile; -import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import org.apache.poi.logging.PoiLogManager; import org.apache.poi.openxml4j.opc.internal.ZipHelper; import org.apache.poi.ss.usermodel.DateUtil; import org.apache.poi.ss.usermodel.FillPatternType; @@ -77,7 +77,7 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook; * See <a href="https://poi.apache.org/spreadsheet/how-to.html#sxssf">SXSSF (Streaming Usermodel API)</a>. */ public final class BigGridDemo { - private static final Logger LOG = LogManager.getLogger(BigGridDemo.class); + private static final Logger LOG = PoiLogManager.getLogger(BigGridDemo.class); private static final Random rnd = new Random(); |