We are trying to build a Springboot starter that will create log4j2 configuration programmatically, so developers don't have to bother creating log4j2.xml files. The problem is that the log4j2 programmatic API changes from version to version. We have tested our code with log4j2 version 2.5 and it works correctly in a stand-alone environment
Now we are trying to include our API in a Springboot starter so all springboot applications can include this starter and don't have to worry about log4j configuration.
The problem we are facing is that Springboot bundles its own version of log4j and we cannot control which version of Springboot the users are going to use.
Is there a way we can force the springboot starter to load the version 2.5 of log4j2 else our test Springboot app is complaining about some method not found in log4j
log4j-bom
, which fixes the versions of all artifacts from the Log4j 2.x project, but does not override the versions of other artifacts. – Chum