ppkarwasz commented on PR #1165:
URL: https://github.com/apache/logging-log4j2/pull/1165#issuecomment-1416688714

   @adwsingh,
   
   I reverted back to your first idea of checking for 
`FrameworkUtil#getBundle`: if the method exists (OSGI 4.2) and returns `null`, 
we are not running in an OSGI container and `OsgiServiceLocator` should be 
disabled regardless of the OSGI version on the classpath.
   
   You can test this by running `mvn verify -pl log4j-api-test 
-Dosgi.api.version=X` with values of X in `4.0.0`, `4.1.0` and `4.2.0`.
   
   What name should we put in the changelog for this PR and #1127 ?


-- 
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]

Reply via email to