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

Summary: Java: Consolidating how logging is treated across a project
Product: java Reporter: pekarna <pekarna>
Component: SourceAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

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.