How to Enable Java Logging in Windows

Operating System: Windows

This article provides information on how to enable Java tracing and logging. Logging is a feature that allows any output in the Java Console to redirect to a log file using the Java Logging API. Java logging provides a record that may be needed for troubleshooting.

To enable logging, perform the following steps.

  1. Open the Windows Control Panel.


Figure 1. Windows Control Panel

  1. Select Programs > Java.


Figure 2. Open Java Control Panel

  1. The Java Control Panel will open in a separate window. Click the Advanced tab at the top.


Figure 3. Java Control Panel Advanced

  1. Select Enable tracing and Enable logging.
  2. You have successfully enabled Java logging. By default, logs are stored in

<User Application Data Folder>\Sun\Java\Deployment\log