This change merges the contents of the log4j-spring-boot module into Spring Boot, effectively making Log4j 2 on par with Logback and eliminating the need for the log4j-spring-boot module.
I was able to verify this with a sample project I have.
(edit)
The following sub-tasks have been created based on this PR:
- [x] #32730
- [x] #32731
- [x] #32732
- [x] #32733
- [x] #32734
- [x] #32735
Comment From: philwebb
Thanks very much @rgoers, and thanks for your patience whilst we go to this. I've split the PR into a number of distinct issues so that our automated changelog is correct.
I made a few amendments to some of the functionality, namely:
- I removed the ability in
StrLookupto resolveprofiles.activeandprofiles.enabled. This simplifies quite a bit of code and I can't think of a good reason why users should need to resolve the profiles. - A few of the extensions now fail hard if the
Environmentisn't available when they're used - URL based lookups must resolve a config and if they don't the application will fail to start
I've also added a new section in the reference guide to explain the features.
Thanks again for the contribution and for all your hard work on Log4j2!