Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8051959 Add thread and timestamp options to java.security.debug system property
  3. JDK-8339100

Release Note: Thread and Timestamp Options for java.security.debug System Property

XMLWordPrintable

      The `java.security.debug` system property now accepts arguments which add thread ID, thread name, caller information, and timestamp information to debug statements for all components or a specific component.

      `+timestamp` can be appended to debug options to print a timestamp for that debug option.
      `+thread` can be appended to debug options to print thread and caller information for that debug option.

      Examples:
      `-Djava.security.debug=all+timestamp+thread` adds timestamp and thread information to every debug statement generated.

      `-Djava.security.debug=properties+timestamp` adds timestamp information to every debug statement generated for the `properties` component.

      You can also specify `-Djava.security.debug=help` which will display a complete list of supported components and arguments.

      See [Printing Thread and Timestamp Information](https://docs.oracle.com/en/java/javase/17/security/troubleshooting-security.html#GUID-EDB76EF1-D4B2-4D32-83C1-554129526FB4) for more information.

            coffeys Sean Coffey
            mpalmerj Marc Palmerjohnson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: