Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8142952

Unified Logging framework does not allow multiple -Xlog: arguments.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • None
    • hotspot
    • svc
    • 9
    • b96

      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.

            mlarsson Marcus Larsson (Inactive)
            mockner Max Ockner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: