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 - IDE Hints - Logging
Summary: IDE Hints - Logging
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-04 10:28 UTC by marco_bresciani
Modified: 2013-09-02 14:24 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 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?