openrewrite / rewrite-logging-frameworks

OpenRewrite recipes for assisting with Java logging migration tasks.
Apache License 2.0
25 stars 20 forks source link

log4j-to-slf4j is intended to rewrite the log4j2 api over to slf4j but framework keeps removing the binding #182

Open hazendaz opened 3 days ago

hazendaz commented 3 days ago

This has been occurring for a long time and still problem on latest. It is deleting any occurrence of log4j-to-slf4j 2.x when slf4j is seen. The entire point of that module is to rewrite the log4j2 api to slf4j api. It states its part of the removal process in the meta data here when migrating to slf4j. But this is wrong. In my case I am using apache poi and need it to write to slf4j. I don't want to lose those logs. Why would this action occur?

timtebeek commented 1 day ago

Hi @hazendaz ; Would you mind conforming to this bug report format? It's hard for us with the limited time we have to work out the details from a free-form report. That allows us to better judge your issue, and provide guidance on how to see that resolved.