The Java logging framework supports three types of output with examples of direct use with the -Xlog command-line syntax:
In the following example, we provide output to stderr:
-Xlog:all=warning:stderr:none
The following example provides output to stdout:
-Xlog:all=warning:stdout:none
The following example writes the output to a text file:
-Xlog:all=warning:file=logmessages.txt:none