rewrite-logging-frameworks icon indicating copy to clipboard operation
rewrite-logging-frameworks copied to clipboard

OpenRewrite recipes for assisting with Java logging migration tasks.

Results 20 rewrite-logging-frameworks issues
Sort by recently updated
recently updated
newest added

## What problem are you trying to solve? When logging exceptions using SLF4J or Log4j API, a common mistake is to add a placeholder for the exception in the message...

enhancement

## What problem are you trying to solve? Loglevel guards ( such as `if (LOG.isDebugEnabled())`) are a performance improvement to prevent building up logging statement arguments when the log line...

recipe

It would be great if there was a Recipe to convert between things like log4j.properties or log4j.xml to logback.xml etc.

recipe

### Problem Reformatting occurs when no other modifications are made. ### Expected behavior When no changes are made to a logging callsite, no modifications should occur to the formatting. ###...

bug

I was reading the documentation [here](https://docs.openrewrite.org/reference/recipes/java/logging/logback) and can see log4j2 to logback conversion is supported. But there is no way to convert vice versa (from logback to log4j2). Are there...

recipe

SLF4J 2.0.0 has been released: https://www.slf4j.org/faq.html#changesInVersion200 That means we can now adopt the fluent logging api: https://www.slf4j.org/manual.html#fluent I expect this to be most useful around guard blocks such as the...

recipe

It is inefficient to have sequences of logger invocations at the same level: ```java logger.info("foo"); logger.info("bar"); ``` These would be better combined into a single invocation

recipe

Sometimes parameters to logging invocations include expensive computations which are pointless if the log level isn't set such that the message will actually be recorded. It would be useful to...

good first issue
recipe

Pet peeve: IDE warnings about unused loggers added through Lombok annotations. While we already have [Remove unused private fields](https://docs.openrewrite.org/reference/recipes/java/cleanup/removeunusedprivatefields), this does not take into account loggers added through for instance...

recipe