Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8303392 Runtime.exec and ProcessBuilder.start should use System logger
  3. JDK-8304748

Release Note: `Runtime.exec` and `ProcessBuilder` Logging of Command Arguments

    XMLWordPrintable

Details

    Description

      Processes started by `Runtime.exec` and `ProcessBuilder` can be enabled to log the command, arguments, directory, stack trace, and process id. The exposure of this information should be reviewed before implementation. Logging of the information is enabled when the logging level of the `System#getLogger(String)` named `java.lang.ProcessBuilder` is `System.Logger.Level.DEBUG` or `Logger.Level.TRACE`.
      When enabled for `Level.DEBUG`, only the process id, directory, command, and stack trace are logged.
      When enabled for `Level.TRACE`, the command arguments are included with the process id, directory, command, and stack trace.

      Attachments

        Activity

          People

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: