You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/01/22 16:52:48 UTC

[GitHub] JaroslavTulach opened a new pull request #382: Use logger level for felix.

JaroslavTulach opened a new pull request #382: Use logger level for felix.
URL: https://github.com/apache/incubator-netbeans/pull/382
 
 
   The default log setting for Felix was to too verbose. On start the Felix printed lines like:
   ```log
   DEBUG: WIRE: [124.0] osgi.wiring.package; (osgi.wiring.package=javax.annotation.processing) -> [0] 
   DEBUG: WIRE: [124.0] osgi.wiring.package; (osgi.wiring.package=javax.lang.model) -> [0]
   DEBUG: WIRE: [124.0] osgi.wiring.package; (osgi.wiring.package=javax.lang.model.element) -> [0] 
   DEBUG: WIRE: [124.0] osgi.wiring.package; (osgi.wiring.package=javax.lang.model.type) -> [0] 
   DEBUG: WIRE: [124.0] osgi.wiring.package; (osgi.wiring.package=javax.lang.model.util) -> [0] 
   DEBUG: WIRE: [124.0] osgi.wiring.package; (osgi.wiring.package=javax.tools) -> [0]
    ```
   this output is only printed by Felix when debug log level is on:
   ```java
           boolean debugLog = m_felix.getLogger().getLogLevel() >= Logger.LOG_DEBUG;
   ```
   and the log level definitions are:
   ```java
       public static final int LOG_ERROR = 1;
       public static final int LOG_WARNING = 2;
       public static final int LOG_INFO = 3;
       public static final int LOG_DEBUG = 4;
   ```
   this PR is converting various `java.util.logging.Level` values to the above Felix levels. Thus by default, Felix prints nothing. One can change that by using `-Dorg.netbeans.core.netigso.level=FINE` & co. when launching NetBeans.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists