-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
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 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?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status