RFR: 8343395: SSLLogger doesn't work for formatted messages [v4]

Sean Coffey coffeys at openjdk.org
Thu Sep 18 09:29:18 UTC 2025


On Wed, 17 Sep 2025 21:04:34 GMT, Weijun Wang <weijun at openjdk.org> wrote:

> Does this mean the `parameters` argument in the `SSLSimpleFormatter::format` method is always empty? And then all those `messageCompactFormatWithParas` and `messageFormatWithParas` are useless?

`SSLSimpleFormatter.formatParameters(params)` is still used and contains logic to decode JSSE Objects for logging purposes. 


On your specific question regarding messageCompactFormatWithParas / messageFormatWithParas

correct - they appear to have been designed for SSLConsoleLogger use. The System.Logger option delegates back to the logging framework regarding output format.

The default System Logger format already includes some fields. e.g. :


Sep 18, 2025 9:10:00 AM sun.security.ssl.SSLLogger log
FINE: Ignore disabled cipher suite: TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384

-------------

PR Comment: https://git.openjdk.org/jdk/pull/25934#issuecomment-3306455651


More information about the security-dev mailing list