JDK-8339101 : Release Note: Thread and Timestamp Options for java.security.debug System Property
  • Type: Sub-task
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 21.0.5-oracle
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2024-08-27
  • Updated: 2024-09-27
  • Resolved: 2024-08-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21
21.0.5-oracleResolved
Related Reports
Cloners :  
Description
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/21/security/troubleshooting-security.html#GUID-EDB76EF1-D4B2-4D32-83C1-554129526FB4) for more information.
Comments
Creating new RN sub-task to accommodate a documentation link differing from the original.
27-08-2024