It seems like Unified Logging outputs must be specified all in a single -Xlog statement.
If you run something like this: "java -Xlog:thing1 -Xlog:thing2 <program>", you will only get output for thing2!
The core problem here is that LogConfiguration::parse_log_arguments resets the log configuration each time. As a result, if a second -Xlog option is parsed, parse_log_arguments is called to handle it and deletes the previous configuration.
If you run something like this: "java -Xlog:thing1 -Xlog:thing2 <program>", you will only get output for thing2!
The core problem here is that LogConfiguration::parse_log_arguments resets the log configuration each time. As a result, if a second -Xlog option is parsed, parse_log_arguments is called to handle it and deletes the previous configuration.
- duplicates
-
JDK-8143402 Allow multiple -Xlog arguments to aggregate in unified logging
-
- Closed
-