Tracing and Logging
Tracing and Logging includes the following topics:
Tracing is a facility to redirect any output in the Java Console to a trace file.
Tracing can be turned on by enabling the property
javaplugin.trace. However, it turns on all tracing
facilities inside Java Plug-in. To enable more fine-grained
javaplugin.trace.option may be used. You can
set trace-level options (0-5) in the Java
Console, shown in the previous chapter, with the following
This enables tracing on the fly.
Another way to set fine-grained tracing is through the Java Control Panel. For instance, to enable tracing for everthing (option 5 above), enter the following in the "Java Run Time Parameters" textfield:
Tracing set through the Control Panel will take effect when the Plug-in is launched, but changes made through the Control Panel while a Plug-in is running will have no effect until restart.
To set the initial trace level for a Java Web Start application
set the deployment property deployment.trace.level. The
deployment.trace.level property can have one of the
To use all the tracing level set
Similar to tracing, logging is a facility to redirect any output in the Java Console to a log file using the Java Logging API. To enable logging perform the following actions:
The names of the trace and log files are
plugin<modified version number>.trace
plugin<modified version number>.log
<modified version number> includes
the major, minor and patch version numbers; e.g.,
The default location (directory) of the trace and log files is:
<User Application Data Folder>\Sun\Java\Deployment\logon Windows
<User Application Data Folder> is as
If the environment variable
USER_JPI_PROFILE is set
<user plugin home> then the trace and log
files will be written to:
<user plugin home>/.java/deployment/logon Unix/Linux
<user plugin home>\Sun\Java\Deployment\logon Windows
Copyright © 1993, 2011, Oracle and/or its affiliates. All rights reserved.