JDK-8257429 : Release Note: Deprecated Tracing Flags Are Obsolete and Must Be Replaced With Unified Logging Equivalents
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 16
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2020-11-30
  • Updated: 2021-12-03
  • Resolved: 2021-12-03
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 16
16Resolved
Description
When Unified Logging was added in Java 9, a number of tracing flags were deprecated and mapped to their unified logging equivalent. These flags are now obsolete and will no longer be converted automatically to enable unified logging. To continue getting the same logging output, you must explicitly replace the use of these flags with their unified logging equivalent.

| Obsoleted Option | Unified Logging Replacement |
| ------------------------ | --------------------------- |
| -XX:+TraceClassLoading | -Xlog:class+load=info |
| -XX:+TraceClassUnloading | -Xlog:class+unload=info |
| -XX:+TraceExceptions | -Xlog:exceptions=info |

Comments
Added markdown table. Not sure if spacing will be preserved correctly.
06-12-2020

I suggest adding some historical context here. "When Unified Logging was added in Java 9, a number of tracing flags were deprecated and mapped to their unified logging equivalent. These flags are now obsolete and will no longer be converted automatically to enable unified logging. To continue getting the same logging output you must replace the use of these flags with their unified logging equivalent yourself." Also the RN title needs to be something more explicit e.g. "Old tracing flags are now obsolete and must be replaced with unified logging"
30-11-2020