RFR: 8303392: Runtime.exec and ProcessBuilder.start should use System logger [v3]
Roger Riggs
rriggs at openjdk.org
Thu Mar 9 19:53:07 UTC 2023
> Runtime.exec and ProcessBuilder.start methods create a new operating system process with the program and arguments. Many applications configure a logging subsystem to monitor application events. Logging a process start message with the program, arguments, and stack trace can identify the caller and purpose.
> Logging the process start event is complementary to the process start event generated for JFR (Java Flight Recorder).
Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
Revise logging of ProcessBuilder.start to support DEBUG and TRACE logging.
Revise the implNote to include a warning about logging security sensistive information.
DEBUG logs only the command, directory, stack trace, and pid.
TRACE additionally logs arguments.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/12862/files
- new: https://git.openjdk.org/jdk/pull/12862/files/3013ca0e..0f172bab
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=12862&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=12862&range=01-02
Stats: 75 lines in 3 files changed: 44 ins; 1 del; 30 mod
Patch: https://git.openjdk.org/jdk/pull/12862.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12862/head:pull/12862
PR: https://git.openjdk.org/jdk/pull/12862
More information about the core-libs-dev
mailing list