This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247575 - make "String concatenation in logger" work for slf4j loggers as well
Summary: make "String concatenation in logger" work for slf4j loggers as well
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-30 02:10 UTC by Milos Kleint
Modified: 2014-09-30 02:10 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milos Kleint 2014-09-30 02:10:13 UTC
slf4j is fairly popular around here and my hints the IDE are of no use because they only handle java util logging.

I've workarounded the problem by Find&replace "import org.slf4j.Logger" with "import java.util.logging.Logger", performing the "String concatenation in logger" via Inspect&Transform, then reverting the import statement changes, Find&Replace for "logger.log(Level.INFO" -> "logger.info(" and them manually replacing {0} with {} etc.

There should be a better way.