vy commented on a change in pull request #637:
URL: https://github.com/apache/logging-log4j2/pull/637#discussion_r775014358



##########
File path: 
log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesPropertySource.java
##########
@@ -29,15 +29,21 @@
 
     private static final String PREFIX = "log4j2.";
 
+    private static final String KEY_PRIORITY = 
"log4j2.properties_load_priority";
+
+    private final int priority;
+
     private final Properties properties;
 
     public PropertiesPropertySource(final Properties properties) {
         this.properties = properties;
+        final String order = (String)properties.get(KEY_PRIORITY);

Review comment:
       Log4j has a fuzzy matching strategy, I am not sure if we can simply look 
for `KEY_PRIORITY` at this stage – the fuzzy key alternatives might not have 
been populated.

##########
File path: 
log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesPropertySource.java
##########
@@ -29,15 +29,21 @@
 
     private static final String PREFIX = "log4j2.";
 
+    private static final String KEY_PRIORITY = 
"log4j2.properties_load_priority";

Review comment:
       ```suggestion
       private static final String KEY_PRIORITY = 
"log4j2.propertySourcePriority";
   ```




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