Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.13.3, 2.14.1
-
Spring Boot 2.4.5
Slf4j
Description
In SpringBoot project with test profile,
org.slf4j.LoggerFactory.getLogger("xxx") can get test profile LoggerContext and read configuration from log4j2-test.xml.
But
org.slf4j.LoggerFactory.getILoggerFactory().getLogger("xxx") can only get current LoggerContext and read configuration from log4j2.xml.
Is it designed like this? Why?