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 196285

Summary: IDE Hints - Logging
Product: java Reporter: marco_bresciani <marco_bresciani>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description marco_bresciani 2011-03-04 10:28:00 UTC
As described in http://wiki.netbeans.org/Java_Hints#Logging the hint "No loggers" is activated and shown, for a class when "There is no logger declared for a class.".
  Then, clicking on the hint, it creates a private static final Logger LOG using java.util.Logger class.
  And that's good! :)

But, if I replace the java.util.Logger type with, say, org.slf4j.Logger using the same LOG field, the hint is activated and still visible.

//Created by the hint
private static final Logger LOG = Logger.getLogger(MyClass.class.getName());

//Manually modified (with related imports from org.slf4j.Logger)
private static final Logger LOG = LoggerFactory.getLogger(MyClass.class)

Can this hint be configured to adapt to a specific field name or type?