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.
Summary: | Add logging level based message filtering | ||
---|---|---|---|
Product: | platform | Reporter: | Sherold Dev <sherold> |
Component: | Output Window | Assignee: | Milos Kleint <mkleint> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | anebuzelsky |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Sherold Dev
2006-12-04 10:35:10 UTC
please specify what the usecase is. Debugging? Any specific messages you consider useful? For example if you develop a web application targeted to Tomcat, the server output is full of info message which you usually do not care about. e.g.: Dec 4, 2006 2:07:15 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8084 Dec 4, 2006 2:07:15 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 695 ms Dec 4, 2006 2:07:15 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 4, 2006 2:07:15 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.17 Dec 4, 2006 2:07:15 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Dec 4, 2006 2:07:16 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8084 Dec 4, 2006 2:07:17 PM org.apache.jk.common.ChannelSocket init INFO: Port busy 8009 java.net.BindException: Address already in use Dec 4, 2006 2:07:17 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8010 Dec 4, 2006 2:07:17 PM org.apache.jk.server.JkMain start INFO: Jk running ID=1 time=0/29 config=null Dec 4, 2006 2:07:17 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Dec 4, 2006 2:07:17 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 1785 ms Dec 4, 2006 2:07:27 PM org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/WebApplication12] What you are interested in are only the WARNING and ERROR message, however, in case of some error you might want to take a look also at the INFO messages and thus not logging the INFO message at all is not an option. The same example might apply also in the J2SE development. This is not realistic to do in a general way in Output Window code. You should do it in your code as the provider of the stream for Output. Adding buttons to Output window is possible via APIs. You can do the filtering of the stream in your code and reload it to the Output Window. |