mattrpav commented on issue #2852: URL: https://github.com/apache/logging-log4j2/issues/2852#issuecomment-2297898406
@vy the use case is to enable a runtime to use a fixed configuration value and then allow for various deployments use cases to modify 0..n number of log4j2 configuration files without having to change the runtime's configured value for log4j2.configurationFile. Use Case 1: Log config per-environment 1. Build a Java-based container and configure log4j2.configurationDirectory=/opt/app/conf/log.d 2. Deploy the application to 3 different environments: dev, test and prod 3. On a per-env basis deploy the corresponding log4j2 configuration: log4j2-dev.xml, log4j2-test.xml, log4j2-prod.xml Use Case 2: Dynamic multi-tenant application 1. Build a Java-based container that supports multi-tenant applications (aka monolithic/modulith app) and configure log4j2.configurationDirectory=/opt/app/conf/log.d 2. Deploy the application to support 3 different tenants: order, quote and billing 3. On a per-tenant basis deploy the corresponding log4j2 configuration: log4j2-order.xml, log4j2-quote.xml, log4j2-billing.xml -- 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]
