openrewrite / openrewrite/rewrite-logging-frameworks

Recipe to combine sequences of logging invocations into single invocation

Open
#94 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.