IBM WebSphere - Append debug events to log using javax.net.debug
by
Jeremy Canfield |
Updated: December 21 2022
| IBM WebSphere articles
Follow these steps to configure a WebSphere application server to log javax.net.debug events to the HPEL or SystemOut log.
- In the WebSphere admin console, select Servers.
- Select All servers
- Select your application server
- Select Java and process management
- Select process definition
- Select Java Virtual Machine
- Select Custom properties.
- Select New and create the following
- Name = javax.net.debug
- Value = true
Restart your application server, and javax.net.debug events should be appended to the HPEL or SystemOut log.
Or, the javax.net.debug property can be set in a Java application.
public class Main {
public static void main(String[] args) {
System.setProperty("javax.net.debug", "all");
}
}
Did you find this article helpful?
If so, consider buying me a coffee over at