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

Unified Logging always writes warnings to stdout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • tbd
    • 17, 18
    • hotspot
    • 9

      Something seems broken with UL:

      $ /d/ade/apps/Java/jdk-17/bin/java -Xlog:all=warning:stderr -Xloggc:gc.log -version > stdout.txt 2> stderr.txt

      $ cat stdout.txt
      [0.004s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:gc.log instead.

      $ cat stderr.txt
      [0.004s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:gc.log instead.
      java version "17-internal" 2021-09-14 LTS
      Java(TM) SE Runtime Environment (build 17-internal+0-LTS-2021-05-26-2325074.david.holmes.jdk-dev2.git)
      Java HotSpot(TM) 64-Bit Server VM (build 17-internal+0-LTS-2021-05-26-2325074.david.holmes.jdk-dev2.git, mixed mode, sharing)

      The warning went to stdout and stderr!

      I've confirmed that somehow all warnings go to stdout and also to whereever warnings have been redirected!

            jsjolen Johan Sjölen
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: