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 231737 - Java: Consolidating how logging is treated across a project
Summary: Java: Consolidating how logging is treated across a project
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2013-06-24 18:18 UTC by pekarna
Modified: 2013-09-02 14:21 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description pekarna 2013-06-24 18:18:54 UTC
* When generating `catch` blocks, NetBeans always uses java.util.logging.

* When generating test classes, NetBeans uses System.out.println().

* When generating a class, NetBeans doesn't generate any logging code.

It would be nice if NetBeans used unified logging, configurable per project.

* Project configuration would allow to choose amongst few (JUL, Log4j, JBoss Logging)

* When generating code, NetBeans would obey this setting

* When generating a class, NetBeans would add static logger reference (it's easier to delete it (Ctrl+X, Ctrl+I) than to add it):

    private static final Logger log = LoggerFactory.getLogger( Foo.class );

Thanks for considering.