To enable SSL logs add the below JVM arguments to your program.
Most of the IDE will have Java VM arguments tab where you can add the above arguments to utilize at run time.
Sample Eclipse IDE:
The below JVM argument enable only the ssl logs.
-Djavax.net.debug=SSL
The below JVM argument will turn on all debugging logs .
Java Command Line:-Djavax.net.debug=ALL
$> java -Djavax.net.debug=SSL SampleClass
Most of the IDE will have Java VM arguments tab where you can add the above arguments to utilize at run time.
Sample Eclipse IDE: