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