Skip to content

Conversation

@sambsnyd
Copy link
Member

slf4j-api versions 2+ provide a fluent API for avoiding unnecessary computation of messages that wont be logged. Adapt the recipe to use this when possible.

@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Sep 29, 2025
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@sambsnyd sambsnyd merged commit bc29986 into main Sep 30, 2025
2 checks passed
@sambsnyd sambsnyd deleted the fluent-log-avoidance branch September 30, 2025 00:17
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Sep 30, 2025
mergify bot added a commit to robfrank/linklift that referenced this pull request Oct 15, 2025
…rom 3.15.0 to 3.16.0 [skip ci]

[//]: # (dependabot-start)
⚠️ \*\*Dependabot is rebasing this PR\*\* ⚠️
Rebasing might not happen immediately, so don't worry if this takes some time.
Note: if you make any changes to this PR yourself, they will take precedence over the rebase.
---
[//]: # (dependabot-end)
Bumps [org.openrewrite.recipe:rewrite-logging-frameworks](https://github.com/openrewrite/rewrite-logging-frameworks) from 3.15.0 to 3.16.0.
Release notes

*Sourced from [org.openrewrite.recipe:rewrite-logging-frameworks's releases](https://github.com/openrewrite/rewrite-logging-frameworks/releases).*

> 3.16.0
> ------
>
> What's Changed
> --------------
>
> * Fluent log avoidance by [`@​sambsnyd`](https://github.com/sambsnyd) in [openrewrite/rewrite-logging-frameworks#254](https://redirect.github.com/openrewrite/rewrite-logging-frameworks/pull/254)
> * OpenRewrite recipe best practices by [`@​timtebeek`](https://github.com/timtebeek) in [openrewrite/rewrite-logging-frameworks#255](https://redirect.github.com/openrewrite/rewrite-logging-frameworks/pull/255)
> * Update recipe documentation examples by [`@​timtebeek`](https://github.com/timtebeek) in [openrewrite/rewrite-logging-frameworks#256](https://redirect.github.com/openrewrite/rewrite-logging-frameworks/pull/256)
>
> New Contributors
> ----------------
>
> * [`@​sambsnyd`](https://github.com/sambsnyd) made their first contribution in [openrewrite/rewrite-logging-frameworks#254](https://redirect.github.com/openrewrite/rewrite-logging-frameworks/pull/254)
>
> **Full Changelog**: <openrewrite/rewrite-logging-frameworks@v3.15.0...v3.16.0>


Commits

* [`58681dd`](openrewrite/rewrite-logging-frameworks@58681dd) Update recipe documentation examples ([#256](https://redirect.github.com/openrewrite/rewrite-logging-frameworks/issues/256))
* [`792a488`](openrewrite/rewrite-logging-frameworks@792a488) OpenRewrite recipe best practices ([#255](https://redirect.github.com/openrewrite/rewrite-logging-frameworks/issues/255))
* [`bc29986`](openrewrite/rewrite-logging-frameworks@bc29986) Fluent log avoidance ([#254](https://redirect.github.com/openrewrite/rewrite-logging-frameworks/issues/254))
* See full diff in [compare view](openrewrite/rewrite-logging-frameworks@v3.15.0...v3.16.0)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=org.openrewrite.recipe:rewrite-logging-frameworks&package-manager=maven&previous-version=3.15.0&new-version=3.16.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants