Skip to content

Commit 030f5d6

Browse files
committed
Adapt log4j-core to Log4j API 2.x
1 parent 259a05d commit 030f5d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

log4j-core-test/src/test/java/org/apache/logging/log4j/core/tools/GenerateCustomLoggerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
import javax.tools.ToolProvider;
3939
import org.apache.logging.log4j.LogManager;
4040
import org.apache.logging.log4j.Marker;
41+
import org.apache.logging.log4j.core.test.TestConstants;
4142
import org.apache.logging.log4j.message.Message;
4243
import org.apache.logging.log4j.message.MessageFactory;
43-
import org.apache.logging.log4j.spi.LoggingSystemProperty;
4444
import org.apache.logging.log4j.test.TestLogger;
4545
import org.apache.logging.log4j.util.MessageSupplier;
4646
import org.apache.logging.log4j.util.Strings;
@@ -52,7 +52,7 @@
5252

5353
@Tag("functional")
5454
@SetSystemProperty(
55-
key = LoggingSystemProperty.Constant.LOGGER_CONTEXT_FACTORY_CLASS,
55+
key = TestConstants.LOGGER_CONTEXT_FACTORY,
5656
value = "org.apache.logging.log4j.test.TestLoggerContextFactory")
5757
public class GenerateCustomLoggerTest {
5858

log4j-core-test/src/test/java/org/apache/logging/log4j/core/tools/GenerateExtendedLoggerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
import javax.tools.ToolProvider;
3939
import org.apache.logging.log4j.LogManager;
4040
import org.apache.logging.log4j.Marker;
41+
import org.apache.logging.log4j.core.test.TestConstants;
4142
import org.apache.logging.log4j.message.Message;
4243
import org.apache.logging.log4j.message.MessageFactory;
4344
import org.apache.logging.log4j.spi.ExtendedLogger;
44-
import org.apache.logging.log4j.spi.LoggingSystemProperty;
4545
import org.apache.logging.log4j.test.TestLogger;
4646
import org.apache.logging.log4j.util.MessageSupplier;
4747
import org.apache.logging.log4j.util.Strings;
@@ -53,7 +53,7 @@
5353

5454
@Tag("functional")
5555
@SetSystemProperty(
56-
key = LoggingSystemProperty.Constant.LOGGER_CONTEXT_FACTORY_CLASS,
56+
key = TestConstants.LOGGER_CONTEXT_FACTORY,
5757
value = "org.apache.logging.log4j.test.TestLoggerContextFactory")
5858
public class GenerateExtendedLoggerTest {
5959

0 commit comments

Comments
 (0)