javaMe
Innocent Bystander
Java games rock!
|
 |
«
Posted
2003-05-19 20:02:51 » |
|
Hi Everyone;
I'm coding an Applet for the Java(TM) Plug-in - for browser. I noticed that it has this great tracing feature -- you see it as soon as the java console is opened
0-5: set trace level to <n>
I am trying to figure out how to integrate this with my code - so that if I want finer grain logging to the output I can get it just by pressing 1, 2, 3, 4 or 5.
If anybody knows how to tie this in with my code I would appreciate it. I have already looked at the Documentation and it doesn't give any code example. It just says this.
------------------------ Enhanced Java Plug-in Tracing In the previous version of Java Plug-in, tracing could be turned on by enabling the property javaplugin.trace. However, it turned on all tracing facilities inside Java Plug-in, and messages often flooded the Java Console. In this version, tracing control is more fine-grained. A new property, javaplugin.trace.option, has been introduced. You can set trace-level options (0-5) in the Java Console, shown above, with the following meanings:
0 — off 1 — basic 2 — network and basic 3 — security, network and basic 4 — extension, security, network and basic 5 — LiveConnect, extension, security, network and basic This enables tracing on the fly.
Sincerely Yours, Stephen
|