Skip to content

Add StringFormatLoggingToParameterized and MessageFormatLoggingToParameterized recipes to transform logging to SLF4J parameterized format. Add RemoveUnnecessaryLogLevelGuards recipe to remove redundant if-statement guards around SLF4J logging calls.#3336

Merged
motlin merged 1 commit into
mainfrom
openrewrite-logging
Jan 16, 2026

Conversation

@motlin

@motlin motlin commented Jan 14, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions

github-actions Bot commented Jan 14, 2026

Copy link
Copy Markdown

Jacoco Code Coverage

Overall Project 74.7% -0.34% 🍏
Files changed 90.73% 🍏

Module Coverage
Liftwizard versions of Openrewrite rules 81.64% -0.42% 🍏
Files
Module File Coverage
Liftwizard versions of Openrewrite rules StringFormatLoggingToParameterized.java 94.41% -5.59% 🍏
MessageFormatLoggingToParameterized.java 92.87% -7.13% 🍏
RemoveUnnecessaryLogLevelGuards.java 85.84% -14.16% 🍏

@motlin motlin force-pushed the openrewrite-logging branch from 70f727c to cf3aaff Compare January 14, 2026 18:15
@motlin

motlin commented Jan 15, 2026

Copy link
Copy Markdown
Collaborator Author

@timtebeek I wanted to show you these OpenRewrite recipes that I'm going to land in Liftwizard. Once I'm confident they work well, I could contribute them to openrewrite/rewrite-logging-frameworks. RemoveUnnecessaryLogLevelGuards mostly addresses openrewrite/rewrite-logging-frameworks#127.

@timtebeek

Copy link
Copy Markdown

Thanks for sharing! Yes seems like they'd fit right in. Especially like the simplification achieved with RemoveUnnecessaryLogLevelGuards. I look forward to your PR. 🙏🏻

@motlin motlin force-pushed the openrewrite-logging branch 3 times, most recently from e743c50 to 185fb67 Compare January 16, 2026 14:57
…meterized recipes to transform logging to SLF4J parameterized format. Add RemoveUnnecessaryLogLevelGuards recipe to remove redundant if-statement guards around SLF4J logging calls.
@motlin motlin force-pushed the openrewrite-logging branch from 185fb67 to 1c12105 Compare January 16, 2026 18:38
@motlin motlin merged commit 1a1b495 into main Jan 16, 2026
43 checks passed
@motlin motlin deleted the openrewrite-logging branch January 16, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants