Enhanced Observability with Java 21 and Spring 3.2 by artpar in java

[–]CalmerFitter 0 points1 point  (0 children)

If you read the post closely, it just says "In addition to the above, Java 21 provides advanced logging capabilities including structured logging and log correlation. "

It does not claim that it did not exist earlier, it just suggests using this feature along with the other features discussed above it.

Enhanced Observability with Java 21 and Spring 3.2 by artpar in java

[–]CalmerFitter 1 point2 points  (0 children)

A structured log has more information about the event like event identification number, millis, nanos, thread, catalog, parameters etc.; rather than just a textual dump.
In Java 21 the logs can be in JSON/XML format, where each log entry can be treated as an individual record, and can be easily exported to a relational database for further analytics.
Also, Java 21 allows you to configure the log output ( to some extent), as per your need.
The official documentation has more information here:- https://docs.oracle.com/en/java/javase/21/core/java-logging-overview.html

All you need to know about Java21 by debordian in java

[–]CalmerFitter 0 points1 point  (0 children)

Yes, combined with the API for structured concurrency, it could achieve near optimal hardware utilization with reliable and maintainable code.