1

我正在尝试在浏览器中调试我的小程序,并且 Java 控制台已启用。

基本上,对于每个类,如下所示的第二类消息都会被打印出来。我想摆脱它。

network: Cache entry not found [url: http://localhost/applet/org/jboss/netty/channel/ChannelFutureListener$2.class, version: null]
network: Connecting http://localhost/applet/org/jboss/netty/channel/ChannelFutureListener$2.class with proxy=DIRECT

当然,我可以复制粘贴,保存在文件中,然后应用过滤器等等。有没有办法禁用这些消息以完全打印到控制台?

4

1 回答 1

0

这似乎是我忽略的唯一机会


c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

0-5: set trace level to <n>可以过滤所有网络消息

http://docs.oracle.com/javase/1.4.2/docs/guide/plugin/developer_guide/tracing_logging.html

于 2013-01-08T08:36:12.857 回答