openrewrite / openrewrite/rewrite-logging-frameworks
Recipe to combine sequences of logging invocations into single invocation
Open
Nobody has claimed this yet.
recipe
- Dominant language
- Java
- Stars
- 34
- Forks
- 32
- Avg merge
- 6h 32m
- Merged PRs (30d)
- 3
Description
It is inefficient to have sequences of logger invocations at the same level:
logger.info("foo");
logger.info("bar");
These would be better combined into a single invocation
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the repository's existing Java logging recipes and how they represent transformations. Define the expected result for adjacent same-level logger.info calls, using the example in the issue as the initial case; done means the sequence is combined into one invocation without changing its messages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100