Command-line options

A new command-line option was added to the logging framework to provide overall control of the JVM's logging operations. The -Xlog command-line option has an extensive array of parameters and possibilities. Here is one example:

-Xlog:gc+rt*=debug

In this example, we are telling the JVM to take the following actions:

  • Log all messages tagged with, at a minimum, the gc and rt tags
  • Use the debug level
  • Provide output to stdout

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.