我正在尝试在浏览器中调试我的applet,并且已启用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
当然,我可以复制粘贴,保存在文件中,然后应用过滤器等等。有没有办法禁用这些消息以完全打印到控制台?
最佳答案
这似乎是唯一的机会,我忽略了
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