vy commented on issue #2766:
URL:
https://github.com/apache/logging-log4j2/issues/2766#issuecomment-2275112131
@SnobbyVirus1973, @ppkarwasz, what about the following instead?
1. Ship `log4j2-main.xml` in the core project
2. Ship `log4j2-supplement.xml` in the JAR package
3. In the core project, create a `ConfigurationFactory` such that
1. It creates `Configuration` instances using `log4j2-main.xml`,
`log4j2-supplement.xml`, and `log4j2.xml` files (if they are present):
```
ConfigurationFactory.getInstance().getConfiguration(null,
ConfigurationSource.fromUri("..."))
```
2. Returns a `new CompositeConfiguration(availConfigs)`
--
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]