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 153977 - Let syntax highlighting 'hide' usages of Logger
Summary: Let syntax highlighting 'hide' usages of Logger
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-26 23:21 UTC by Sherold Dev
Modified: 2015-10-02 14:15 UTC (History)
1 user (show)

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 Sherold Dev 2008-11-26 23:21:58 UTC
Usage of logging statements can very often clutter the code. Consider supporting the most common logging frameworks like
Java logging or log4j by distinguishing usages of Logger instances from the other code.

e.g.:

log.info("foo");

if (log.isLoggable(Level.INFO)) {
    log.info("bar " + bar.toString());
}

If the log statements were displayed in faded colors, the user could concentrate more on the 'real' code.
Comment 1 Svata Dedic 2015-10-02 14:15:09 UTC
Interesting feature would be to code-fold all the logging statements. Taking ownership