Class JdkHandler


  • public class JdkHandler
    extends Handler
    JUL Handler that bridges log records to Pax Logging loggers. Even if SimpleFormatter is used, we only call its Formatter.formatMessage(LogRecord) which only uses MessageFormat.format(String, Object...) method on log record's message. It doesn't do anything with remaining fields of LogRecord.

    Since the backport of TLSv1.3 in java (JDK-8248721) the logic of TLS debug traces has been changed. The new TLS debug logger uses a configured JUL logger when you define the system property "javax.net.debug" as empty. The TLS log records contain additional string parameters. They are without format parameters in the log message. The JdkHandler appends them to the end of the TLS log message.

    The JdkHandler has the following logging modes for the TLS log records:

    • no_logging - TLS messages are not logged
    • no_hex_dumps_logging - all messages except hex dumps are logged
    • debug_logging - all messages are logged
    The logging mode is determined by the value of the "org.ops4j.pax.logging.tlsdebug.loggingMode" system property.