Francis-FY commented on pull request #676: URL: https://github.com/apache/logging-log4j2/pull/676#issuecomment-1003100483
@rgoers The method getEvnironment of SpringEnvironmentHolder will check if LogManager is initialized through LogManagerStatus.isInitialized(). You can run a unit test to validate. 1. create file log4j2.component.properties containing `log4j2.loggerContextFactory=org.apache.logging.log4j.core.impl.Log4jContextFactory` 2. run test `org.apache.logging.log4j.spring.boot.SpringLookupTest` or `org.apache.logging.log4j.spring.boot.SpringProfileTest` 3. the test will fail  -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
