-
Sub-task
-
Resolution: Delivered
-
P4
-
21.0.5-oracle
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.
`+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.
- clones
-
JDK-8339100 Release Note: Thread and Timestamp Options for java.security.debug System Property
- Resolved