mjrosenb opened a new issue, #4024:
URL: https://github.com/apache/logging-log4j2/issues/4024

   ## Description
   
   Attempt to configure a logger to add a property to logged messages using a 
Properties file ala 
https://github.com/apache/logging-log4j2/blob/rel/2.25.3/src/site/antora/modules/ROOT/examples/manual/configuration/logger-properties.properties
   
   ## Configuration
   
   **Version:** 2.25.3
   **Operating system:** Ubuntu 24.04 LTS
   
   **JDK:** 
   ```
   openjdk 21.0.4 2024-07-16 LTS
   OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)
   OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode, 
sharing)
   ```
   
   ## Notes:
   
   
[PropertiesConfigurationBuilder#createLogger](https://github.com/apache/logging-log4j2/blob/rel/2.25.3/log4j-core/src/main/java/org/apache/logging/log4j/core/config/properties/PropertiesConfigurationBuilder.java#L272)
 is the function responsible for creating a logger from the list of properties. 
it extracts the fields "name", "includeLocation", "level", "type", 
"additivity", "appenderRef", and "filter".  At the end of the function, 
properties contains three properties, `.property.type`, `.property.name`, and 
`.property.value` , which get dropped.  Using the example xml configuration 
works properly.
   ## Reproduction
   
   
   This is in the Log4J2 manual already, I'm guessing tests aren't run on them?
   
   


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