ppkarwasz commented on code in PR #2062:
URL: https://github.com/apache/logging-log4j2/pull/2062#discussion_r1448453168


##########
log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationFactory.java:
##########
@@ -118,6 +121,15 @@ protected boolean isActive() {
         return true;
     }
 
+    /**
+     * Required for Spring Boot.
+     * @param props PropertiesUtil.
+     * @return the AuthorizationProvider, if any.
+     */
+    public static AuthorizationProvider authorizationProvider(final 
PropertiesUtil props) {
+        return 
AuthorizationProvider.getAuthorizationProvider((PropertyEnvironment) props);
+    }

Review Comment:
   @jvz,
   
   Yes, but it could use a different `PropertyEnvironment` for each 
`LoggerContext`.
   
   Anyway the reason @rgoers "introduced" this method in 3.x is that it was 
already present in 2.x, but disappeared from 3.x or was never ported to `main`.



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