Add recipe to rename logback.xml to logback-spring.xml#997
Merged
Jenson3210 merged 7 commits intomainfrom Apr 14, 2026
Merged
Conversation
Spring Boot only processes Spring-specific logback extensions (<springProfile>, <springProperty>) when the config file is named logback-spring.xml. This recipe detects these tags and renames the file as part of the Spring Boot 3.0 migration. Closes moderneinc/customer-requests#2210
timtebeek
approved these changes
Apr 14, 2026
Updated copyright year from 2024 to 2026.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
RenameLogbackToLogbackSpringrecipe that renameslogback.xml→logback-spring.xmlwhen the file contains Spring-specific tags (<springProfile>or<springProperty>)Registers the recipe in the
UpgradeSpringBoot_3_0migrationSpring Boot only processes these extensions when the config file uses the
-spring.xmlnaming convention; a plainlogback.xmlis loaded too early by logback itselfCloses moderneinc/customer-requests#2210
Test plan
<springProfile>is present<springProperty>is presentlogback-test.xml(Spring Boot doesn't supportlogback-spring-test.xml)