diff options
author | PJ Fanning <fanningpj@apache.org> | 2024-11-24 19:48:55 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2024-11-24 19:48:55 +0000 |
commit | 924d8e78940d2941788e70c9863ddb9d57b7146d (patch) | |
tree | 2bb55ab9929531bc04e3802c9a371dee50a2b789 /poi/src/test/java | |
parent | e400a0cc0dcb7ee7000b1edf29e8af751ca88d66 (diff) | |
download | poi-924d8e78940d2941788e70c9863ddb9d57b7146d.tar.gz poi-924d8e78940d2941788e70c9863ddb9d57b7146d.zip |
PoiLogManager
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922055 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi/src/test/java')
4 files changed, 8 insertions, 8 deletions
diff --git a/poi/src/test/java/org/apache/poi/hssf/dev/BiffViewer.java b/poi/src/test/java/org/apache/poi/hssf/dev/BiffViewer.java index b435034631..21a8aff6d7 100644 --- a/poi/src/test/java/org/apache/poi/hssf/dev/BiffViewer.java +++ b/poi/src/test/java/org/apache/poi/hssf/dev/BiffViewer.java @@ -33,8 +33,8 @@ import java.util.List; import org.apache.commons.io.output.CloseShieldOutputStream; import org.apache.commons.io.output.NullOutputStream; -import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import org.apache.poi.logging.PoiLogManager; import org.apache.poi.hssf.dev.BiffDumpingStream.IBiffRecordListener; import org.apache.poi.hssf.record.ContinueRecord; import org.apache.poi.hssf.record.HSSFRecordTypes; @@ -53,7 +53,7 @@ import org.apache.poi.util.StringUtil; */ public final class BiffViewer { private static final char[] NEW_LINE_CHARS = System.getProperty("line.separator").toCharArray(); - private static final Logger LOG = LogManager.getLogger(BiffViewer.class); + private static final Logger LOG = PoiLogManager.getLogger(BiffViewer.class); private static final String ESCHER_SERIALIZE = "poi.deserialize.escher"; private static final int DUMP_LINE_LEN = 16; private static final char[] COLUMN_SEPARATOR = " | ".toCharArray(); diff --git a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestMatrixFormulasFromBinarySpreadsheet.java b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestMatrixFormulasFromBinarySpreadsheet.java index 081635d85a..643e11bed3 100644 --- a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestMatrixFormulasFromBinarySpreadsheet.java +++ b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestMatrixFormulasFromBinarySpreadsheet.java @@ -28,8 +28,8 @@ import java.util.List; import java.util.Locale; import java.util.stream.Stream; -import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import org.apache.poi.logging.PoiLogManager; import org.apache.poi.hssf.HSSFTestDataSamples; import org.apache.poi.ss.formula.eval.ErrorEval; import org.apache.poi.ss.formula.functions.TestMathX; @@ -47,7 +47,7 @@ import org.junit.jupiter.params.provider.MethodSource; final class TestMatrixFormulasFromBinarySpreadsheet { - private static final Logger LOG = LogManager.getLogger(TestMatrixFormulasFromBinarySpreadsheet.class); + private static final Logger LOG = PoiLogManager.getLogger(TestMatrixFormulasFromBinarySpreadsheet.class); private static HSSFWorkbook workbook; diff --git a/poi/src/test/java/org/apache/poi/poifs/filesystem/TestEmptyDocument.java b/poi/src/test/java/org/apache/poi/poifs/filesystem/TestEmptyDocument.java index 9507b13a7d..84931e302c 100644 --- a/poi/src/test/java/org/apache/poi/poifs/filesystem/TestEmptyDocument.java +++ b/poi/src/test/java/org/apache/poi/poifs/filesystem/TestEmptyDocument.java @@ -26,8 +26,8 @@ import java.io.IOException; import java.util.stream.Stream; import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream; -import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import org.apache.poi.logging.PoiLogManager; import org.apache.poi.util.IOUtils; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; @@ -35,7 +35,7 @@ import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; final class TestEmptyDocument { - private static final Logger LOG = LogManager.getLogger(TestEmptyDocument.class); + private static final Logger LOG = PoiLogManager.getLogger(TestEmptyDocument.class); private interface EmptyDoc { void handle(DirectoryEntry dir) throws IOException; diff --git a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java index 9039293b5b..8767251853 100644 --- a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java +++ b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java @@ -39,8 +39,8 @@ import java.util.List; import java.util.Map; import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream; -import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import org.apache.poi.logging.PoiLogManager; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.ss.ITestDataProvider; import org.apache.poi.ss.SpreadsheetVersion; @@ -58,7 +58,7 @@ import org.junit.jupiter.api.Test; * A base class for bugzilla issues that can be described in terms of common ss interfaces. */ public abstract class BaseTestBugzillaIssues { - private static final Logger LOG = LogManager.getLogger(BaseTestBugzillaIssues.class); + private static final Logger LOG = PoiLogManager.getLogger(BaseTestBugzillaIssues.class); private static final String TEST_32 = "Some text with 32 characters to "; private static final String TEST_255 = "Some very long text that is exactly 255 characters, which are allowed here, bla bla, bla bla, bla bla, bla bla, bla bla, bla bla, bla bla, bla bla, bla bla, bla bla, bla bla, bla bla, bla bla, bla bla, bla bla, bla bla, bla bla, bla bla, bla bla, bla....."; |