2013-01-08 75 views
1

我想在瀏覽器中調試我的小程序,並且已啓用Java控制檯。如何在瀏覽器中過濾Java Applet控制檯的輸出?

基本上對於每一個類,下面的兩條消息被打印。我想擺脫它。

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 

當然,我可以複製粘貼,保存在文件中,然後應用過濾器等。有沒有辦法禁用這些消息打印到控制檯?

+0

這似乎是一個有用[鏈接] (http://docs.oracle.com/javase/1.4.2/docs/guide/plugin/developer_guide/tracing_logging.html),但它會禁用所有網絡我ssages。 –

回答

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

相關問題